]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: prometheus: use nsec unit in desc for RBD _read_latency and _write_latency metrics 43217/head
authorKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 18 Sep 2021 10:45:21 +0000 (17:45 +0700)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 18 Jul 2023 07:28:34 +0000 (14:28 +0700)
Fixes: https://tracker.ceph.com/issues/44321
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
src/pybind/mgr/prometheus/module.py

index ee0607f23fd9d618fda40e380ddfe9baf20c7592..4bec5456ab102ad0c9c0b7e1eb50d11f167a4fea 100644 (file)
@@ -636,9 +636,9 @@ class Module(MgrModule):
                 'read_bytes': {'type': self.PERFCOUNTER_COUNTER,
                                'desc': 'RBD image bytes read'},
                 'write_latency': {'type': self.PERFCOUNTER_LONGRUNAVG,
-                                  'desc': 'RBD image writes latency (msec)'},
+                                  'desc': 'RBD image writes latency (nsec)'},
                 'read_latency': {'type': self.PERFCOUNTER_LONGRUNAVG,
-                                 'desc': 'RBD image reads latency (msec)'},
+                                 'desc': 'RBD image reads latency (nsec)'},
             },
         }  # type: Dict[str, Any]
         global _global_instance