Organization of storage of metric data in graphite?

How can I get my metrics to be stored at the root level. Currently stored in the statistics hierarchy (see graphite ) Want to save below the top level (graphite)

+4
source share
2 answers

It looks like you are using statsd with the graphite.js backend.

The code sets the metric prefix with statistics. if during init ()

https://github.com/etsy/statsd/blob/master/backends/graphite.js

line 180: globalPrefix = globalPrefix !== undefined ? globalPrefix : "stats"; 

You will need to change the way init () is called to offer it an empty gobalPrefix.

OR

You will need to modify the backend to stop the prefix of all your statsd metrics with statistics .

+2
source

Add these settings to your statsd configuration file (maybe something like /etc/statsd.js )

 { ...(unrelated options)... , graphite: { legacyNamespace: false , globalPrefix: "" , prefixCounter: "" , prefixTimer: "" , prefixGauge: "" , prefixSet: "" } } 
+7
source

All Articles