]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
exporter: user only counter dump/schema commands for extacting counters 50718/head
authorAvan Thakkar <athakkar@redhat.com>
Tue, 28 Mar 2023 13:32:47 +0000 (19:02 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Tue, 28 Mar 2023 18:12:09 +0000 (23:42 +0530)
commit51a89906dff333becb40508f6b80029646801f8c
tree7dc5ac5d38d2aed836f476d647eec3a7e5159f6d
parentcec15a5992a4d51d286e5cb510d667af3b27c07a
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.
src/common/options/ceph-exporter.yaml.in
src/exporter/DaemonMetricCollector.cc
src/exporter/DaemonMetricCollector.h