Use label federated_instance instead of instance #28

Merged
jeltz merged 13 commits from fix_exported_prometheus into master 2021-03-06 02:09:25 +01:00
Showing only changes of commit 763cc2eb51 - Show all commits

View file

@ -57,6 +57,13 @@
mode: 0644 mode: 0644
when: prometheus_unifi_snmp_targets is defined when: prometheus_unifi_snmp_targets is defined
- name: Configure Prometheus Switchs
copy:
content: "{{ prometheus_switch_snmp_targets | to_nice_json }}"
dest: /etc/prometheus/targets_switch_snmp.json
mode: 0644
when: prometheus_switch_snmp_targets is defined
- name: Configure Prometheus UPS SNMP devices - name: Configure Prometheus UPS SNMP devices
copy: copy:
content: "{{ [{'targets': prometheus_ups_snmp_targets }] | to_nice_json }}\n" content: "{{ [{'targets': prometheus_ups_snmp_targets }] | to_nice_json }}\n"