Git Product home page Git Product logo

Comments (5)

iamseth avatar iamseth commented on May 29, 2024

That's odd that the value is returning ",01".

What do you get if you run this query manually?

SELECT name, value FROM v$sysstat WHERE name IN ('parse count (total)', 'execute count', 'user commits', 'user rollbacks')

from oracledb_exporter.

nqirod avatar nqirod commented on May 29, 2024

Without the heading :

user commits
284
user rollbacks
0
parse count (total)
18424
execute count
81456

from oracledb_exporter.

cukal avatar cukal commented on May 29, 2024

I got the same error when running it for the first time even without hitting /metrics, second & third restart went ok for a while, no error when scraping and after the fourth restart the error gets thrown right after startup or each time when calling /metrics.

oracle@***** oracle_exporter]$ ./oracledb_exporter.linux-amd64 -log.format logger:stdout -log.level debug
INFO[0000] Starting oracledb_exporter 0.0.6              source=main.go:407
ERRO[0002] Error scraping for wait_time: sql: Scan error on column index 1: converting driver.Value type string (",001") to a float64: invalid syntax  source=main.go:154
INFO[0002] Listening on :9161                            source=main.go:415

From sqlplus:

SQL> SELECT name, value FROM v$sysstat WHERE name IN ('parse count (total)', 'execute count', 'user commits', 'user rollbacks');

NAME								      VALUE
---------------------------------------------------------------- ----------
user commits							    5796250
user rollbacks							      10962
parse count (total)						  244890767
execute count							  924452065

Sometimes the error value changes:

ERRO[0000] Error scraping for wait_time: sql: Scan error on column index 1: converting driver.Value type string (",005") to a float64: invalid syntax  source=main.go:154

Oracle 11.2.0 & instantclient-basic-linux.x64-12.1.0.2.0.zip

from oracledb_exporter.

gbloquel avatar gbloquel commented on May 29, 2024

By updating the NS_LANG with a value where the NLS_NUMERIC_CHARACTERS is '.' and there is no problem.
I solved by adding an environment variable NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
If you use docker container add -e NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15 in run command.

@iamseth Maybe you can add this in your README ?

from oracledb_exporter.

iamseth avatar iamseth commented on May 29, 2024

Added a note to the README. Thanks for your help @cukal and @gbloquel

from oracledb_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.