]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: add doc to describe relationship to prometheus 37590/head
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 8 Oct 2020 03:35:45 +0000 (16:35 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Mon, 2 Nov 2020 02:33:46 +0000 (15:33 +1300)
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 <pcuzner@redhat.com>
src/mgr/DaemonHealthMetricCollector.cc

index 4b51100ee2e7eacd132f99290b3b880daccea3fd..53c0b78a6904ccce3804af9b24c04fedccac92d5 100644 (file)
@@ -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) {