suhailpatel / seastat

A standalone Cassandra Prometheus Exporter with speed 🏎️
MIT License
18 stars 2 forks source link

Really use config and env_var variables #14

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello @suhailpatel and thank you for the great job creating this exporter.

I've noticed that it is not actually making use of neither config file nor env vars, so here's the fix, now flag variables are bound to viper store

In addition, I've included prefix to env vars, so that we can uniquely configure the needed parameters, i.e.

INTERVAL -> SEASTAT_INTERVAL