Fix configuration created by cephadm to prevent any "many-to-many
matching not allowed: matching labels must be unique on one side"
issues. The mgr/prometheus exporter exports suitable instance labels
itself, which can be taken over when `honor_labels` in Prometheus is set
to `true`.
Fixes: https://tracker.ceph.com/issues/47997
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
{% endif %}
scrape_configs:
- job_name: 'ceph'
+ honor_labels: true
static_configs:
- targets:
{% for mgr in mgr_scrape_list %}
- '{{ mgr }}'
{% endfor %}
- labels:
- instance: 'ceph_cluster'
{% if nodes %}
- job_name: 'node'
static_configs: