]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: return IP addresses in prometheus_sd_config 67339/head
authorkginon <kobi.ginon.ext@nokia.com>
Tue, 3 Mar 2026 16:39:34 +0000 (18:39 +0200)
committerKobi Ginon <kginon@redhat.com>
Mon, 16 Mar 2026 15:40:59 +0000 (17:40 +0200)
commit737f30f12c4764a2e5c76ef6d8b40068b07543a9
tree6c621e9aee284701676bfe5660269c8923ab7e23
parentd43b50d54d6eb659bb2353f6bf8ecd2ead8a82fe
mgr/cephadm: return IP addresses in prometheus_sd_config

Align prometheus service-discovery to return IP addresses for the
manager target, following the same pattern used for alertmanager
and node-exporter.

This avoids discovery failures in environments where the Prometheus
host cannot resolve the FQDNs of the Ceph cluster nodes.

Fixes: https://tracker.ceph.com/issues/74658
Signed-off-by: Kobi Ginon <kginon@redhat.com>
src/pybind/mgr/cephadm/services/service_discovery.py
src/pybind/mgr/cephadm/tests/test_service_discovery.py