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>
{% 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'] }}"