From: Paul Cuzner Date: Wed, 24 Nov 2021 01:28:01 +0000 (+1300) Subject: mgr/prometheus: Fix the per method stats exported X-Git-Tag: v17.1.0~347^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44082%2Fhead;p=ceph.git mgr/prometheus: Fix the per method stats exported The per method stats were missing due to a typo. This patch addresses that to ensure that we get the method timings and count 'counters' Fixes: https://tracker.ceph.com/issues/53379 Signed-off-by: Paul Cuzner --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 1c132064f60d..c8aa6823e1fc 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -1400,7 +1400,7 @@ class Module(MgrModule): 'prometheus_collect_duration_seconds_count', 'The amount of metrics gathered for this exporter', ('method',)) - self.metrics['prometheus_collect_duration_seconds_sum'] = count_metric + self.metrics['prometheus_collect_duration_seconds_count'] = count_metric # Collect all timing data and make it available as metric, excluding the # `collect` method because it has not finished at this point and hence