Added an option called use_global_instance option.
I found that when using disable_instance_metrics when combined with using InfluxDB, I was having problems with the templates that the Graphite listener for InfluxDB requires.
Specifically, I wanted to use this template:
"prefix.cluster.type.host.category.instance.measurement*",
However, when I allowed GraphiteReceiver to send instance stats, the instance name was empty for counters that don't have an instance, or the global one.
To make this template work for all metrics GraphiteReceiver sends, I modified GraphiteReceiver to replace the null instance name with the string "global" so that all metrics that came back had something in the instance name and will fit with the InfluxDB Graphite listener template.
Then I added a configurable option to enable or disable this behavior, set to false by default so not to change the current behavior unless specifically configured.
Added an option called use_global_instance option.
I found that when using disable_instance_metrics when combined with using InfluxDB, I was having problems with the templates that the Graphite listener for InfluxDB requires.
Specifically, I wanted to use this template: "prefix.cluster.type.host.category.instance.measurement*",
However, when I allowed GraphiteReceiver to send instance stats, the instance name was empty for counters that don't have an instance, or the global one.
To make this template work for all metrics GraphiteReceiver sends, I modified GraphiteReceiver to replace the null instance name with the string "global" so that all metrics that came back had something in the instance name and will fit with the InfluxDB Graphite listener template.
Then I added a configurable option to enable or disable this behavior, set to false by default so not to change the current behavior unless specifically configured.