collector: support custom poll intervals

Also simplify config context schema for SNMP since we only use a single
instance.
This commit is contained in:
Timotej Lazar 2025-11-04 14:56:40 +01:00
parent be7eca3a89
commit f3eec5fcbf
4 changed files with 21 additions and 16 deletions

View file

@ -28,7 +28,7 @@
template:
dest: "/etc/prometheus/conf.d/{{ item.name }}.yml"
src: "prometheus-job.yml.j2"
loop: "{{ prometheus_hosts }}"
loop: "{{ prometheus_config }}"
loop_control:
label: "{{ item.name }}"
notify: reload prometheus