[prometheus] Sort server list

certbot_on_virtu
Alexandre Iooss 2019-07-08 22:21:49 +02:00
parent 1c266d8a59
commit 59a3f340dc
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
# Prometheus targets.json # Prometheus targets.json
prometheus_targets: prometheus_targets:
- labels: {job: node} - labels: {job: node}
targets: "{{ groups['crans'] | map('replace', '.org', '.org:9100') | list }}" targets: "{{ groups['crans'] | 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: