]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: prometheus: The generatorURL in alerts is only using hostname 46218/head
authorVolker Theile <vtheile@suse.com>
Tue, 10 May 2022 13:25:54 +0000 (15:25 +0200)
committerVolker Theile <vtheile@suse.com>
Wed, 11 May 2022 10:42:18 +0000 (12:42 +0200)
commit4281dc1bbc466dd061781a984b34bb0eafaf482f
tree1ad16dddd4489d0cfc181fc0d0d0742b21fc7fe2
parent6f459d8bf2396ca28597e87f5fc74593b7a49a84
cephadm: prometheus: The generatorURL in alerts is only using hostname

Prometheus is currently using only the hostname in the 'generatorURL' of an alert which causes issues when clicking on the URL in the Ceph Dashboard or somewhere else, because in most cases the hostname of the node that is running the Prometheus container is not resolvable.

To fix that the command line argument '--web.external-url' must be appended in the systemd unit file of the Prometheus container, e.g. '--web.external-url http://foo.bar:9095' whereas a FQDN hostname is used.

Fixes: https://tracker.ceph.com/issues/55595
Signed-off-by: Volker Theile <vtheile@suse.com>
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py