]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: prometheus: The generatorURL in alerts is only using hostname 46352/head
authorVolker Theile <vtheile@suse.com>
Tue, 10 May 2022 13:25:54 +0000 (15:25 +0200)
committerMichael Fritch <mfritch@suse.com>
Fri, 20 May 2022 03:12:41 +0000 (21:12 -0600)
commit9f5663256139a9f0390ebd43b4afda34a315d510
treed49e272cc6636ba68ac8ef7e5e605e867b791c9e
parentd4b4a97aa211c051cf6c80bc571240db30f3c104
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>
(cherry picked from commit 4281dc1bbc466dd061781a984b34bb0eafaf482f)
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py