Fix CI errors
parent
78643a163d
commit
b6f2faf279
|
@ -5,7 +5,9 @@
|
||||||
# Prometheus targets.json
|
# Prometheus targets.json
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
- labels: {job: node}
|
- labels: {job: node}
|
||||||
targets: "{{ groups['server'] | map('replace', '.org', '.org:9100') | list | sort }}"
|
targets: |
|
||||||
|
{{ groups['server'] | map('replace', '.org', '.org:9100') |
|
||||||
|
list | sort }}
|
||||||
- labels: {job: prometheus}
|
- labels: {job: prometheus}
|
||||||
targets: ['localhost:9090']
|
targets: ['localhost:9090']
|
||||||
prometheus_ups_snmp_targets:
|
prometheus_ups_snmp_targets:
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
line: "ARGS=\"--web.listen-address=127.0.0.1:9116\""
|
line: "ARGS=\"--web.listen-address=127.0.0.1:9116\""
|
||||||
notify: Restart prometheus-snmp-exporter
|
notify: Restart prometheus-snmp-exporter
|
||||||
|
|
||||||
#- name: Configure Prometheus snmp-exporter
|
# - name: Configure Prometheus snmp-exporter
|
||||||
# template:
|
# template:
|
||||||
# src: "prometheus/snmp.yml.j2"
|
# src: "prometheus/snmp.yml.j2"
|
||||||
# dest: "/etc/prometheus/snmp.yml"
|
# dest: "/etc/prometheus/snmp.yml"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
- name: Activate prometheus service
|
- name: Activate prometheus service
|
||||||
systemd:
|
systemd:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
enabled: yes
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Indicate role in motd
|
- name: Indicate role in motd
|
||||||
|
|
Loading…
Reference in New Issue