]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: Use mgr.release_name for always on modules
authorBoris Ranto <branto@redhat.com>
Wed, 25 Nov 2020 09:27:25 +0000 (10:27 +0100)
committerBoris Ranto <branto@redhat.com>
Thu, 28 Jan 2021 14:54:24 +0000 (15:54 +0100)
commit5f752eb0ad016ec809eaecbb1790e10aced13ed3
treeb872d7d6a79fb6d2ec0f915f7f6d488815c6d38d
parent62c9699ce9dd81819860b7fa5b8cf54427707f92
mgr/prometheus: Use mgr.release_name for always on modules

The host_version is not populated properly in the early stages of ceph
mgr start up process. We can use mgr.release_name instead. It is more
stable and it provides the data even if mgr_map does not contain the
versions, yet.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit aa0650092da3cbf1a73151999874001352cfb9ef)
src/pybind/mgr/prometheus/module.py