]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ceph-prometheus: Add separate job for db host
authorZack Cerza <zack@redhat.com>
Tue, 1 May 2018 17:58:27 +0000 (11:58 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 1 May 2018 17:58:27 +0000 (11:58 -0600)
So that we can monitor the db host's resources, without mixing that data
in with the ceph cluster's metrics.

Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-prometheus/templates/prometheus.yml

index f570421240134bd8d06cbf9e10295af4e95106b5..36a319d5d325744a83c7785a545b4f22b5702514 100644 (file)
@@ -16,7 +16,14 @@ scrape_configs:
 {% endfor %}
   - job_name: 'node'
     static_configs:
-{% for host in groups['all'] %}
+{% for host in (groups['all'] | difference(groups['ceph-grafana'])) %}
+      - targets: ['{{ host }}:9100']
+        labels:
+          instance: "{{ hostvars[host]['ansible_nodename'] }}"
+{% endfor %}
+  - job_name: 'cephmetrics'
+    static_configs:
+{% for host in groups['ceph-grafana'] %}
       - targets: ['{{ host }}:9100']
         labels:
           instance: "{{ hostvars[host]['ansible_nodename'] }}"