Fixes: https://tracker.ceph.com/issues/64970
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit
e6ff23d1297cbcf5da030178c53e14a6b6ce5f43)
Conflicts:
src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2
src/pybind/mgr/cephadm/tests/test_services.py
tls_config:
ca_file: mgr_prometheus_cert.pem
honor_labels: true
+ relabel_configs:
+ - source_labels: [instance]
+ target_label: instance
+ replacement: 'ceph_cluster'
http_sd_configs:
- url: {{ mgr_prometheus_sd_url }}
basic_auth:
- source_labels: [__address__]
target_label: cluster
replacement: {{ cluster_fsid }}
+ - source_labels: [instance]
+ target_label: instance
+ replacement: 'ceph_cluster'
http_sd_configs:
- url: {{ mgr_prometheus_sd_url }}
{% endif %}
- source_labels: [__address__]
target_label: cluster
replacement: fsid
+ - source_labels: [instance]
+ target_label: instance
+ replacement: 'ceph_cluster'
http_sd_configs:
- url: http://[::1]:8765/sd/prometheus/sd-config?service=mgr-prometheus
tls_config:
ca_file: mgr_prometheus_cert.pem
honor_labels: true
+ relabel_configs:
+ - source_labels: [instance]
+ target_label: instance
+ replacement: 'ceph_cluster'
http_sd_configs:
- url: https://[::1]:8765/sd/prometheus/sd-config?service=mgr-prometheus
basic_auth: