Ping plugin for Telegraf to ping multiple ips and export it to InfluxDB
First, proceed to generate your telegraf configuration file with ping plugin enabled:
telegraf -sample-config -input-filter ping -output-filter influxdb > telegraf_ping.conf
If you want to do the classic ping with 1 sec interval, edit the following options:
[agent]
interval = "1s"
flush_interval = "1s"
[[inputs.ping]]
urls = ["8.8.8.8","8.8.4.4"] #Add your ips list
count = 1
ping_interval = 1.0
timeout = 0.0
Now, to run it, execute:
telegraf -config telegraf_ping.conf
Meanwhile, you can show it on Grafana:
Enjoy it!
telegraf -sample-config -input-filter ping -output-filter influxdb > telegraf_ping.conf
If you want to do the classic ping with 1 sec interval, edit the following options:
[agent]
interval = "1s"
flush_interval = "1s"
[[inputs.ping]]
urls = ["8.8.8.8","8.8.4.4"] #Add your ips list
count = 1
ping_interval = 1.0
timeout = 0.0
Now, to run it, execute:
telegraf -config telegraf_ping.conf
Meanwhile, you can show it on Grafana:
thanks for sharing this amazing ping plugin.
ReplyDelete