Comments (5)
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.
Without the heading :
user commits
284
user rollbacks
0
parse count (total)
18424
execute count
81456
from oracledb_exporter.
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.
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.
Added a note to the README. Thanks for your help @cukal and @gbloquel
from oracledb_exporter.
Related Issues (20)
- Multiple remote source (DB oracle), one instance oracledb_exporter
- Oracle binaries in docker image too old for autonomous DB with TLS HOT 1
- caller=collector.go:262 level=error errorpingingoracle:="unknown URL option: wallet_location" HOT 5
- Data is not coming from prometheus to grafana
- panic: runtime error: invalid memory address or nil pointer dereference HOT 2
- Some sql queries are taking time to execute, cause of which none of the queries are scraping data in time.
- Requesting queries with different execution intervals HOT 1
- level=error errorpingingoracle:="missing port in address" HOT 7
- Where is the actual queries that are running from the default metrics? HOT 1
- docker hub version is too old (iamseth/oracledb_exporter)
- Allow using multiple environment variables like DATA_SOURCE_NAME to query different databases HOT 1
- ASM sysdba DATA_SOURCE_NAME wrong example in README.md
- Read data source from file (Docker secrets)
- Incorrect Tablespace values HOT 3
- Release 0.6.0 not satrt HOT 5
- Unable to use custom metrics configuration file HOT 1
- Publish Docker images based on the "scratch" base image
- Unable to obtain oracle version or status info as value
- "advanced negotiation error: during receive service header: network excpetion: ora-12269"
- How to use Multi-Target Support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracledb_exporter.