]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ceph-prometheus: Scrape iscsi gateway exporter 198/head
authorZack Cerza <zack@redhat.com>
Wed, 27 Jun 2018 22:58:42 +0000 (16:58 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 28 Jun 2018 22:21:47 +0000 (16:21 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-prometheus/templates/prometheus.yml

index 36a319d5d325744a83c7785a545b4f22b5702514..64548eec3949ce87eec54c361e5a8a1acc355c8a 100644 (file)
@@ -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 %}