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 committed by Gašper Fele-Žorž
parent 05fe7eaf08
commit 68baf2d9fe
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