Posts

Showing posts with the label telegraf

Ping plugin for Telegraf to ping multiple ips and export it to InfluxDB

Image
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!