您的位置:首页 > 运维架构 > Linux

centos7 搭建 collectd + influxdb + statsd + grafana

2016-11-22 14:39 573 查看
搭建 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

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息