From: Konstantin Shalygin Date: Sat, 18 Sep 2021 10:45:21 +0000 (+0700) Subject: mgr: prometheus: use nsec unit in desc for RBD _read_latency and _write_latency metrics X-Git-Tag: v19.0.0~574^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb5883509d3108c387675bcb0022913da35af7f0;p=ceph.git 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 --- 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