graphite - 从远程主机供给碳/ Graphite

标签 graphite

我已经在专用的 Ubuntu 服务器上安装了 Graphite,它正确地收集了自己的系统性能数据,例如cpu 使用率load_avg 并将其发送到 Carbon,然后我可以在 Graphite Web 上看到这些指标数据。

现在的问题是我想将这些指标数据从多个主机发送到碳/ Graphite 服务器。

我用了diamond将数据发送到持有 Graphite /碳的服务器,它成功地将我的命名方案创建为 Graphite ,但我在 Graphite 网络上看不到这些数据。

将这些数据输入到 Carbon 中并将其可视化到 Graphite 网中还有其他要求吗?

这是 Carbon 已经在端口 2003 上监听其所有接口(interface)

lnxg33k@ubuntu:~$ sudo netstat -nltp | grep python

tcp        0      0 0.0.0.0:2003            0.0.0.0:*               LISTEN      2114/python     
tcp        0      0 0.0.0.0:2004            0.0.0.0:*               LISTEN      2114/python     
tcp        0      0 0.0.0.0:7002            0.0.0.0:*               LISTEN      2114/python  

最佳答案

要测试 Graphite 网/碳配置,使用 bash 命令就足够了,例如:

echo "local.random.diceroll $(((RANDOM%6)+1)) `date +%s`" | nc localhost 2003;

(如果您没有从同一服务器运行命令,请将 localhost 替换为您的 Graphite 主机名)

如果您使用 Whisper 作为存储,您应该会在 GRAPHITE_STORAGE_DIR 目录中看到一些数据库文件,例如:

/opt/graphite/storage/whisper/

它可以在$GRAPHITE_ROOT/conf/carbon.conf中配置。

关于graphite - 从远程主机供给碳/ Graphite ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21596259/

相关文章:

graphite - 带有自定义文本和 Graphite 通配符标签的别名

graphite - StatsD/Graphite 指标命名约定

celery - Graphite 显示按时间过滤的前 10 个指标

pickle - Graphite pickle 与线路接收器

graphite - 比较 t 和 t-7 天的值

javascript - Graphite 聚集错误

java - 是否存在线程安全的 statsd 客户端?

graphite - Graphite 中的自定义查询

python - 配置 statsd 以使用 Graphite

metrics - Grafana 通过别名合并