From 9b5dafd45d22769fb6c33a93df2d31d363d6c673 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 27 Jun 2018 16:58:42 -0600 Subject: [PATCH] ceph-prometheus: Scrape iscsi gateway exporter Signed-off-by: Zack Cerza --- ansible/roles/ceph-prometheus/templates/prometheus.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/ceph-prometheus/templates/prometheus.yml b/ansible/roles/ceph-prometheus/templates/prometheus.yml index 36a319d..64548ee 100644 --- a/ansible/roles/ceph-prometheus/templates/prometheus.yml +++ b/ansible/roles/ceph-prometheus/templates/prometheus.yml @@ -28,3 +28,12 @@ scrape_configs: labels: instance: "{{ hostvars[host]['ansible_nodename'] }}" {% endfor %} +{% if 'iscsis' in groups %} + - job_name: 'iscsi-gws' + static_configs: +{% for host in groups['iscsis'] %} + - targets: ['{{ host }}:9287'] + labels: + instance: "{{ hostvars[host]['ansible_nodename'] }}" +{% endfor %} +{% endif %} -- 2.47.3