collector: support custom poll intervals
Also simplify config context schema for SNMP since we only use a single instance.
This commit is contained in:
parent
be7eca3a89
commit
f3eec5fcbf
4 changed files with 21 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue