Hello All,
I successfully installed Telegraf on Linux and ping plugin seems to be working fine with the bellow ping configuration.
Which says It will collect 1 ping value for every 10 seconds.
Just wanted to know if it is pinging the url all the time and sending data once every 10 seconds or it pings and sends data every 10seconds.
[agent]
interval = “10s”
flush_interval = “10s”
[[inputs.ping]]
urls = [“8.8.8.8”,“8.8.4.4”] #Add your ips list
count = 1
ping_interval = 10.0
timeout = 0.0
The issue I am having now is when I change the ping_interval to 300s then I am supposed to get one ping value for every 300sec(5 min) But when i see in influxDB it ping values are still being generated every 10seconds.
I guess This is because a conflict in between interval=10s and ping_interval=300.0. ping_interval can’t override the interval=10s . when I change the interval=300 then we are getting one ping value for every 300s.
[agent]
interval = “10s”
flush_interval = “10s”
[[inputs.ping]]
urls = [“8.8.8.8”,“8.8.4.4”] #Add your ips list
count = 1
ping_interval = 300.0
timeout = 0.0
Is there a way to set ping_interval to 300s and interval to 10s(in my case). Because I am using other input plugins which need to monitored every 10s but I dont want to ping to happen every 10 s