]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: add abstraction for label-aware perf counter keys
authorCasey Bodley <cbodley@redhat.com>
Wed, 17 Aug 2022 13:27:42 +0000 (09:27 -0400)
committerAli Maredia <amaredia@redhat.com>
Thu, 23 Feb 2023 17:04:19 +0000 (12:04 -0500)
commitf427bb2d2cc8ad067f1c68673bc5be26844772e6
tree234bb6061f6028a4a9f9808e0cc3e4bc3cd4a21d
parent9f0440e6d5f702ad36d7d44ccf2a69018a2dd653
common: add abstraction for label-aware perf counter keys

a flat representation of a set of prometheus labels, returned as a
std::string. this string can either be used for sorting an ordered
container of perf counters, or for hashing an unordered container

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/CMakeLists.txt
src/common/perf_counters_key.cc [new file with mode: 0644]
src/common/perf_counters_key.h [new file with mode: 0644]
src/test/common/CMakeLists.txt
src/test/common/test_perf_counters_key.cc [new file with mode: 0644]