]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
exporter: user only counter dump/schema commands for extacting counters 50748/head
authorAvan Thakkar <athakkar@redhat.com>
Tue, 28 Mar 2023 13:32:47 +0000 (19:02 +0530)
committeravanthakkar <avanjohn@gmail.com>
Fri, 31 Mar 2023 08:58:50 +0000 (14:28 +0530)
commite2d47d6aa37d54ec31209f9cdadd784b25928726
tree55b954e37847b1bd131f37f0ac7b9411a7cc8f4e
parent00e98e8ba77907add70ddafdef9a3dcbac21a73c
exporter: user only counter dump/schema commands for extacting counters

Fixes: https://tracker.ceph.com/issues/59191
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Ceph exporter no more required the output of perf dump/schema, as the ``counter dump`` command
returns both labeled and unlabeled perf counters which exporter can fetch and export.
Removed the ``exporter_get_labeled_counters`` confiug option as exporter will now export
all the counters, labeled or unlabeled.
Also the fix includes the support for renaming the metrics name of rgw multi-site and
adding labels to it, similar to what is there in prometheus module.

(cherry picked from commit 51a89906dff333becb40508f6b80029646801f8c)
src/exporter/DaemonMetricCollector.cc
src/exporter/DaemonMetricCollector.h