From: Zack Cerza Date: Wed, 27 Jun 2018 22:58:42 +0000 (-0600) Subject: ceph-prometheus: Scrape iscsi gateway exporter X-Git-Tag: v2.0~17^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b5dafd45d22769fb6c33a93df2d31d363d6c673;p=cephmetrics.git ceph-prometheus: Scrape iscsi gateway exporter Signed-off-by: Zack Cerza --- 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 %}