prometheus-community/pgbouncer_exporter

Feature request: Add ENV vars alternative to set parameters

Nklya opened this issue · 1 comments

Nklya commented

Hello.
Thank you for the pgbouncer_exporter. I was surprised that there is a new one maintained by prometheus-community.

As I see, kingpin supports environment variables in addition to already existing command-line flags.
https://github.com/alecthomas/kingpin/blob/master/_examples/chat1/main.go#L11
So I think it would be nice to add this. I could try to do PR if needed.

P.S. Also there is no information about command-line flags in Readme.md, so I have to download binary and check -h output. It might be good to add it there I suppose.

Nklya commented

Nevermind, found that it was already proposed #24