Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/telemetry: add new 'perf' channel that shares aggregated perf counter metrics of a cluster #42074

Merged
merged 13 commits into from Jul 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
common: fix missing name in PriorityCache perf counters
There was a problem with PriorityCache perf counters, where part of the name was missing (i.e. "mon.a.cache_bytes" instead of "mon.a.prioritycache.cache_bytes"). The problem was happening because a 'this' pointer was missing in the original implementation.

Signed-off-by: Laura Flores <lflores@redhat.com>
  • Loading branch information
ljflores committed Jul 12, 2021
commit 9e07175b3c9a5c69b8694bc05e0baa26a351582d
3 changes: 1 addition & 2 deletions src/common/PriorityCache.cc
Expand Up @@ -73,8 +73,7 @@ namespace PriorityCache
reserve_extra(reserve_extra),
name(name.empty() ? "prioritycache" : name)
{
PerfCountersBuilder b(cct, name,
MallocStats::M_FIRST, MallocStats::M_LAST);
PerfCountersBuilder b(cct, this->name, MallocStats::M_FIRST, MallocStats::M_LAST);

b.add_u64(MallocStats::M_TARGET_BYTES, "target_bytes",
"target process memory usage in bytes", "t",
Expand Down