]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/health_checks: associate a count with health_alert_t
authorSage Weil <sage@redhat.com>
Wed, 31 Jul 2019 09:14:01 +0000 (04:14 -0500)
committerSage Weil <sage@redhat.com>
Thu, 15 Aug 2019 01:40:08 +0000 (20:40 -0500)
commitd0eb22f3ba557b9e98836995c813ea77c5e7c2a5
treef4c4e3737eaec99418737d72f9375d94bc8d32cb
parent7834cd8146da56aa8b48430e0d90067b55dbca48
mon/health_checks: associate a count with health_alert_t

0 means this is a singleton.  Otherwise, we can sum this up, either
via merge() or get_or_add().

We always structure this so the count goes toward zero (more healthy), so
if a value is too low, then we count how much too low it is.

Signed-off-by: Sage Weil <sage@redhat.com>
17 files changed:
src/mds/FSMap.cc
src/mds/MDSMap.cc
src/mgr/BaseMgrModule.cc
src/mgr/DaemonHealthMetricCollector.cc
src/mgr/PyModuleRegistry.cc
src/mon/AuthMonitor.cc
src/mon/HealthMonitor.cc
src/mon/MDSMonitor.cc
src/mon/MgrMonitor.cc
src/mon/PGMap.cc
src/mon/health_check.h
src/osd/OSDMap.cc
src/pybind/mgr/crash/module.py
src/pybind/mgr/devicehealth/module.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/pg_autoscaler/module.py
src/pybind/mgr/selftest/module.py