Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

How config folder contain of StatsD metrics in graphite #354

Closed
CecsKul opened this Issue Oct 17, 2013 · 8 comments

Comments

Projects
None yet
3 participants

CecsKul commented Oct 17, 2013

I install StatsD follow https://github.com/etsy/statsd/ . I use StatsD push data from the client to the server graphite .
I want to push data automatically into folders that I want .I can not find what i need in the exampleConfig.js file .
Some one help me .
Thanks a lot .

Owner

mrtazz commented Oct 20, 2013

Not sure I understand the problem. Can you elaborate what exactly you're trying to do?

CecsKul commented Oct 21, 2013

On graphite, the default directory tree containing statsD in:
graphite - stats_counts -
I want it in the directory tree
graphite - myfoder
Can u help me . Thanks a lot .

Owner

mrtazz commented Oct 21, 2013

If I understand correctly the globalPrefix setting should so what you want. You can set the prefix name for all metrics. Take a look at the example config

CecsKul commented Oct 25, 2013

Hi mrtazz!
I didn't it . My config file :
...
{
graphitePort: 2003
, graphiteHost: "192.168.3.209"
, port: 8125
, globalPrefix: "myfoder" # <<<<
, backends: [ "./backends/graphite" ]
}
...
And directory tree containing statsD of chart is
graphite - stats_counts -
isn't
graphite - myfoder
Can you show me how to do that . Thanks you so much

aboks commented Oct 28, 2013

The globalPrefix needs to go inside an additional graphite block. Also, to get rid of the stats_counts you might want to set legacyNamespace in the same block to false:

{
graphitePort: 2003
, graphiteHost: "192.168.3.209"
, port: 8125
, graphite   # <<<<
  {
  globalPrefix: "myfoder"
  , legacyNamespace: false   # <<<<
  }
, backends: [ "./backends/graphite" ]
}

In the same block you can also further tweak the prefixCounter, prefixTimer, prefixGauge, and prefixSet settings; see https://github.com/etsy/statsd/blob/master/docs/namespacing.md.

CecsKul commented Oct 29, 2013

Thank you very much, I did it. But how we handle with <"name" >.Rate and <"name" >.Count. After config as you say this two indicators automatically generated in each name .
Another problem is my logs does not record anything. This is my configuration:
{
...
, log : "/var/log/statsd.log" # <<<<<
, graphite
{
globalPrefix: "myfoder"
, legacyNamespace: false
}
, backends: [ "./backends/graphite" ]
}
I use the increment function
Thank you again ^ ^

Owner

mrtazz commented Oct 29, 2013

log needs to be an object to configure node-syslog if you're using that. See https://github.com/etsy/statsd/blob/master/exampleConfig.js#L60

Owner

mrtazz commented Apr 14, 2014

Assuming this fixed the problem with the log configuration. If you still have problems, please reopen this issue.

@mrtazz mrtazz closed this Apr 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment