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!

Comments

Post a Comment

Popular posts from this blog

How to fix Android when developer options are not available for this user

Contiki 3.0 on XM1000

How to fix VirtualBox error when you try to import an ova file