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 <pcuzner@redhat.com>
'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