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.
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.