esl / exometer_report_graphite

Mozilla Public License 2.0
2 stars 2 forks source link

Add option to take prefix from env variable #2

Closed pawlooss1 closed 1 year ago

pawlooss1 commented 1 year ago

This PR introduces new configuration option which allows to specify prefix based on environmental variable. It allows maintaining only one configuration file but still have different prefixes for each node (e.g. hostname). I tested it on my local machine with MongooseIM and InfluxDB and metrics were correctly prefixed. When environmental variable with given name doesn't exist there is a crash report from exometer_report_graphite plugin in the logs but MIM starts normally.