Merge pull request #43217 from k0ste/fix_52656

mgr: prometheus: use nsec unit in desc for RBD _read_latency and _write_latency metrics

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2023-09-01 22:51:01 +08:00 committed by GitHub
commit d770751f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,9 +637,9 @@ class Module(MgrModule, OrchestratorClientMixin):
'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