dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
356 stars 216 forks source link

Read config from JSON or YAML file #116

Closed bbibentyo closed 4 years ago

bbibentyo commented 5 years ago

Just in case this feature is not yet there, It would be nice if we can pass put all the configuration into a file and pass file when starting the process. It's better than having to manually type the password, which makes it visible to all who have access to the server.

./mongodb_exporter -config-file=/etc/some_file.json

wireless00 commented 4 years ago

Is it now possible ? It seem's to me that using a config file (.json or .yaml) is a valid request. 1 year and no update ?

I see no commit for 2 years now.... May be Prometheus should remove this exporter from the recommanded exporters.......

wireless00 commented 4 years ago

ok. It seem someone forked this repo and enhanced the tool. You can find it here: There is active developement on it. https://github.com/percona/mongodb_exporter