Luci-app-statistics ping interval

I have this config for luci-app-statistics, data are collected by default every 30 seconds but I set the ping every 5 seconds.
How does the 6 pings in the 30 seconds processing are considered? The average? The last?
I want to monitor my ISP connection stability. Does make sense to keep this configuration or should I set up differently?

cat /etc/config/luci_statistics

config statistics 'collectd'
option BaseDir '/var/run/collectd'
option PIDFile '/var/run/collectd.pid'
option PluginDir '/usr/lib/collectd'
option TypesDB '/usr/share/collectd/types.db'
option Interval '30'
option ReadThreads '2'
option Include '/etc/collectd/conf.d/*.conf'

config statistics 'rrdtool'
option default_timespan '2hour'
option image_width '600'
option image_height '150'
option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
option enable '1'
option DataDir '/tmp/rrd'
option RRARows '288'
option RRASingle '1'
option RRATimespans '2hour 1day 1week 1month 1year'
option backup '0'

[cut]

config statistics 'collectd_ping'
option TTL '127'
option Interval '5'
option AddressFamily 'any'
option enable '1'
list Hosts '1.1.1.1'
list Hosts '8.8.8.8'

Just ping every 30 seconds.
Every 5 seconds sounds overkill if done 24/7.

1 Like