mjnman

Results 6 comments of mjnman

Miss the "DATA_SOURCE_NAME" variable for the database connection in the binary start. The error is -> ERRO[0000] Error pinging oracle: ORA-12541: TNS:no listener source="main.go:212"

I tried to configure the job below in prometheus: ``` - job_name: 'oracle_history_day' metrics_path: /scrape scrape_interval: 1m scrape_timeout: 40s params: target: [DB1] static_configs: - targets: - oracledb_exporter_day:9161 ``` curl command...

I modified the job configuration in prometheus and set debug mode in prometheus and oracledb exporter: Config in **prometheus.yml** file: ``` global: scrape_interval: 10s scrape_configs: - job_name: 'oracle_history_day' metrics_path: /scrape...

With oracledb exporter 0.5.1 version the /scrape path don't recognize. In the code I didn't see any reference at /scrape path. I'm using a version 4.4 version with code modified

in the tree 0.4.4 I commented the line 596 -> go exporter.runScheduledScrapes()

Answer, when I edited the code and rebuild the docker I can query oracledb_exporter with TNS alias in the curl string. DB1: curl -sS localhost:9161/scrape?target=USER/PWD@DB1 DB2: curl -sS localhost:9161/scrape?target=USER/PWD@DB2 and...