Input ping frequency

Can you change the frequency at which the plugin send icmp? I have been trying to send 5 pings every 30s, but there is no paramater that can change the intervall.

-i / intervall in telegaf.conf doesnt affect the time between ping tests.

I believe that you can set the interval for any input plugin to change the input interval for that individual plugin.

# # Ping given url(s) and return statistics
[[inputs.ping]]
interval = "30s"
#   ## NOTE: this plugin forks the ping command. You may need to set capabilities
#   ## via setcap cap_net_raw+p /bin/ping
#   #
#   ## List of urls to ping
urls = ["www.google.com"] # required
#   ## number of pings to send per collection (ping -c <COUNT>)
count = 5

Is what I have in my telegraf.conf and it seems to do what you want.

Best regards,
dg

thnx i was missing that "interval = ā€œ30sā€ setting.

1 Like