From: Paul Cuzner Date: Thu, 8 Oct 2020 03:35:45 +0000 (+1300) Subject: mgr: add doc to describe relationship to prometheus X-Git-Tag: v16.1.0~713^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc1905b4a74aedc6bdbc928b6d6e514183bbf090;p=ceph.git mgr: add doc to describe relationship to prometheus The healthcheck for slow_ops is used by the mgr/prometheus module so it's important the alert generated matches the format expected in mgr/prometheus. Signed-off-by: Paul Cuzner --- diff --git a/src/mgr/DaemonHealthMetricCollector.cc b/src/mgr/DaemonHealthMetricCollector.cc index 4b51100ee2e7..53c0b78a6904 100644 --- a/src/mgr/DaemonHealthMetricCollector.cc +++ b/src/mgr/DaemonHealthMetricCollector.cc @@ -30,6 +30,8 @@ class SlowOps final : public DaemonHealthMetricCollector { if (daemons.empty()) { return; } + // Note this message format is used in mgr/prometheus, so any change in format + // requires a corresponding change in the mgr/prometheus module. ostringstream ss; if (daemons.size() > 1) { if (daemons.size() > 10) {