From fb5883509d3108c387675bcb0022913da35af7f0 Mon Sep 17 00:00:00 2001 From: Konstantin Shalygin Date: Sat, 18 Sep 2021 17:45:21 +0700 Subject: [PATCH] mgr: prometheus: use nsec unit in desc for RBD _read_latency and _write_latency metrics Fixes: https://tracker.ceph.com/issues/44321 Signed-off-by: Konstantin Shalygin --- src/pybind/mgr/prometheus/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index ee0607f23fd9..4bec5456ab10 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -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 -- 2.47.3