0

So, I want to install statsd and use client python-statsd to collect some data for my Graphite that is successfully installed on my system. I followed this tutorial, but still have no statsd subdirectory in my Graphite folderonly carbon subfolder

So what might be wrong and how I can check statsd working? (my python-statsd client doesn't show any error messages)

4

1 回答 1

1

statsd 必须知道碳缓存(或碳中继)的位置,这是您遵循的教程的一部分。这应该进入 statsd 的配置。

{
graphitePort: 2003,
graphiteHost: "127.0.0.1",
port: 8125
}

要测试 carbon-cache 是否有效,您可以发送一条带有 echo 的消息

echo "foo.bar 1 `date +%s`" | nc -q0 <graphite host> 2003

这应该给你一个目录foo带有一个度量bar和值1

如果可行,那么您的碳已正确配置且可访问。下一个测试它与 statsd 对话

echo "foo.bar:2|c" | nc -q0 -u <statsd host> 8125

这应该在foo.bar中为您提供2的新值。如果这有效,那么一切都应该有效。

于 2015-06-25T19:40:37.710 回答