Is it possible to define scan_interval for Netdata?
Docs have no info for a possibility to use scan_interval for this integration.
Actually, I am rather satisfied with a default frequency (30 seconds, am I right?).
But if a monitored host is unavailable - the log is flooded by errors.
I am thinking about this case:
- Set a huge scan_interval for the integration, kind of this (prevent automatic update, except on HA startup):
sensor:
- platform: netdata
host: 192.168.x.x
port: '19999'
name: "some_host"
scan_interval: 9999999999
resources:
cpu_softirq:
data_group: cpu.cpu0
element: softirq
icon: mdi:cpu-32-bit
cpu_user:
data_group: cpu.cpu0
element: user
icon: mdi:cpu-32-bit
...
- Create an automation and update all created netdata sensors (oh, too many of them) with some frequency.
- Use a condition in the automation: if the monitored host is unavailable → do not update sensors.