How to modify metric name carbon.agents.xxxxx

Asked by Michael Martinez on 2017-08-03

Currently the internal statistics of my carbon-cache instances appear as "carbon.agents.ip-xxx-<port>.*"
I would like to change this to something that where I can use Grafana's wildcards, for example "carbon.agents.ec2-xxx-<clustername>-port"

Is there a setting that will allow me to change this?

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Solved by:
Michael Martinez
Last query:
Last reply:
Denis Zhdanov (deniszhdanov) said : #1

You can change prefix - default is `carbon`, by setting CARBON_METRIC_PREFIX variable. 'agents' part is hardcoded, and 'ip-xxx' - that's your hostname and <port> - that's your instance.
You can change that only editing source code -

Michael Martinez (mwtzzz) said : #2

Yep, that's what I figured after looking into it a little. Thanks for confirming that. I decided to go ahead and just set CARBON_METRIC_PREFIX to 'carbon.<clustername>' and update my grafana dashboards appropriately.