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 32669e1fb1 - Show all commits

View file

@ -23,12 +23,11 @@
notify: Restart Prometheus notify: Restart Prometheus
loop: loop:
- alert.rules.yml - alert.rules.yml
- django.rules.yml
# We don't need to restart Prometheus when updating nodes # We don't need to restart Prometheus when updating nodes
- name: Configure Prometheus Federate devices - name: Configure Prometheus Federate devices
copy: copy:
content: "{{ [{'targets': prometheus_targets }] | to_nice_json }}" content: "{{ [{'targets': prometheus_targets }] | to_nice_json }}"
dest: /etc/prometheus/targets.json dest: /etc/prometheus/targets.json
mode: 0644 mode: 0644
when: prometheus_targets is defined when: prometheus_targets is defined
@ -44,3 +43,4 @@
src: update-motd.d/05-service.j2 src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-prometheus dest: /etc/update-motd.d/05-prometheus
mode: 0755 mode: 0755
...