iamseth / oracledb_exporter

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

Allow using multiple environment variables like DATA_SOURCE_NAME to query different databases #426

Open jgpATs2w opened 3 months ago

jgpATs2w commented 3 months ago

I'm submitting a ...

What is the current behavior?

One to one relation between application and environment variable

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

Allow using multiple environment variables like DATA_SOURCE_NAME to query different databases.

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

Monitor multiple databases.

Please tell us about your environment:

Windows server 19, windows 10

Version: 0.0.0.dev

jgpATs2w commented 3 months ago

Tried to push a branch with the code to fix, but i don't have permissions. Those are the proposed changes: image