简体   繁体   English

如何配置将statsd性能指标导入石墨?

[英]How to configure getting statsd performance metrics into graphite?

This question mentions two types of performance stats: 这个问题提到了两种类型的性能统计信息:

  1. carbon.* : Stats from graphite itself. carbon.* :石墨本身的统计数据。
  2. stats.* : Stats from statsd. stats.* :来自statsd的统计信息。

I am seeing 1., but I'm not seeing 2. Is there a statsd configuration setting (eg some entry in the js file) which will let me see 2.? 我看到的是1.,但没有看到的是2。是否有一个statsd配置设置(例如js文件中的某些条目)可以让我看到2.?

(2) should be generated by default, but the default prefix is statsd. (2)应该默认生成,但是默认前缀是statsd. and not stats. 而不是stats. as you've said. 如你所说。 Maybe check that you don't have any Graphite rules expecting the wrong prefix. 也许检查一下您是否没有任何期望错误前缀的Graphite规则。

You can also configure the prefix to whatever you want using the prefixStats property in the .js config file. 您还可以使用.js配置文件中的prefixStats属性将前缀配置为所需的前缀。

See the documentation in the example config: https://github.com/etsy/statsd/blob/master/exampleConfig.js 请参阅示例配置中的文档: https : //github.com/etsy/statsd/blob/master/exampleConfig.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM