]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr, mgr/prometheus: Fix regression with prometheus metrics 47693/head
authorPrashant D <pdhange@redhat.com>
Thu, 17 Mar 2022 14:29:40 +0000 (14:29 +0000)
committerPrashant D <pdhange@redhat.com>
Fri, 19 Aug 2022 05:56:48 +0000 (01:56 -0400)
commitf4e16fd0b89c9ffc69787f776727c3c0c63159ee
treedefe08621611ca4bf5aa4cde8796f9b4fc9a9fdb
parent7458e41e690802021052863e5164a4143b1d499e
mgr, mgr/prometheus: Fix regression with prometheus metrics

The ceph dameons on host are inheriting ceph version from the host.
This introduces a wrong interpretation in prometheus metrics as well
as in dump_server. Each ceph daemon should represent it's own
ceph version based on the ceph binary is use for that daemon.

Consider a situation where partial upgrade is done on host, some daemons
which are restarted should have ceph version tag as upgraded version
and rest should have older ceph version but presently all inherites
host version. In containerized environment, all daemons are
using ceph version of last daemon registered as a service on the host.

Fixes: https://tracker.ceph.com/issues/54611
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit aeca2e41ef560cf51c1ad935cfb6470e782aa8d5)
src/mgr/ActivePyModules.cc
src/pybind/mgr/prometheus/module.py