diff --git a/monitoring.yml b/monitoring.yml index 7431fd7f7ebf4eb3f647f9272e0213bed2f5ac2d..98b372fa4ba8a0c4e5eb8b9a432002671afe6d83 100644 --- a/monitoring.yml +++ b/monitoring.yml @@ -4,32 +4,13 @@ vars: # Prometheus targets.json prometheus_targets: - - labels: - job: node - targets: - # Physical - - odlyd.adm.crans.org:9100 - - fy.adm.crans.org:9100 - - vulcain.adm.crans.org:9100 - # VM - - dhcp.adm.crans.org:9100 - - nem.adm.crans.org:9100 - - kenobi.adm.crans.org:9100 - - roundcube-srv.adm.crans.org:9100 - - kiwi.adm.crans.org:9100 - - eap.adm.crans.org:9100 - - radius.adm.crans.org:9100 - - frontdaur.adm.crans.org:9100 - - ethercalc-srv.adm.crans.org:9100 - - ipv6-zayo.adm.crans.org:9100 - - prometheus.adm.crans.org:9100 - - labels: - job: prometheus - targets: - - localhost:9090 + - labels: {job: node} + targets: "{{ groups['crans'] | map('replace', '.org', '.org:9100') | list }}" + - labels: {job: prometheus} + targets: ['localhost:9090'] prometheus_ups_snmp_targets: - - targets: - - pulsar.adm.crans.org + - targets: [pulsar.adm.crans.org] + # Debian non-free mirror debian_mirror: http://ftp.adm.crans.org/debian/ roles: