iamseth / oracledb_exporter

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

Read data source from file (Docker secrets) #428

Closed OskarsPakers closed 2 months ago

OskarsPakers commented 3 months ago

I'm submitting a ...

What is the current behavior?

There is an option to pass either --dsn parameter or DATA_SOURCE_NAME environment variable to configure database endpoint.

What is the expected behavior?

A parameter DATA_SOURCE_NAME_FILE could be supported to avoid secrets in environment variable.

What is the motivation / use case for changing the behavior?

In order to avoid using environment variables and use Docker secrets that gets written to file. E.g. like MYSQL_ROOT_PASSWORD_FILE environment variable for Mysql docker images. This feature option mentioned in #23

Please tell us about your environment:

Version: 0.5.2