centos7 搭建 collectd + influxdb + statsd + grafana

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_21398167/article/details/53285673

搭建 collectd + influxdb + statsd + grafana

1.安装 collectd

Yum install eprl-release

Yum install collectd

2.安装 influxdb grafana  参照如下文档

http://blog.csdn.net/qq_21398167/article/details/52920288

3.加入模块 Statsd  ,修改配置

Vi /etc/collectd.conf

LoadPlugin statsd

<Plugin statsd>

  Host "127.0.0.1"

  Port "8125"

  DeleteSets     true

</Plugin>

4.数据写入 influxdb ,修改配置

Vi /etc/collectd.conf

LoadPlugin network

<Plugin network>

#       # client setup:

        Server "ip" "25826"

#       <Server "239.192.74.66" "25826">

</Plugin>

systemctl enable collectd

systemctl start collectd

systemctl status collectd

5.修改 influxdb 配置文件,支持collectd 数据

Vi /etc/influxdb/influxdb.conf

[[collectd]]

  enabled = true

  bind-address = "ip:25826"

  database = "m8"

  typesdb = "/usr/share/collectd/types.db"

systemctl restart influxdb

systemctl status influxdb

参考文档

https://anomaly.io/statsd-in-collectd/

https://collectd.org/wiki/index.php/Plugin:StatsD


猜你喜欢

转载自blog.csdn.net/qq_21398167/article/details/53285673