iamseth / oracledb_exporter

Prometheus Oracle database exporter.
MIT License
472 stars 242 forks source link

Support for reading data source from file #429

Closed OskarsPakers closed 2 months ago

OskarsPakers commented 3 months ago

Description

Fixes #428

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

  1. Created a local file dsn.txt with content "oracle://username:password@host:1521/instance"
  2. Executed go run main.go --database.dsnFile=./dsn.txt
  3. Opened http://localhost:9161/metrics and verified oracledb_tablespace_bytes metrics are present

Checklist: