centos7 搭建 collectd + influxdb + statsd + grafana

搭建 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

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值