Merge pull request #49686 from xxhdx1985126/wip-crimson-dump-metrics

crimson/admin: correct metrics dumping methods

Reviewed-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Yingxin 2023-01-11 13:44:23 +08:00 committed by GitHub
commit 9ef2b8d2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,9 @@ public:
}
for (const auto& [labels, metric] : metric_family) {
if (metric && metric->is_enabled()) {
f->open_object_section(""); // enclosed by array
DumpMetricsHook::dump_metric_value(f, full_name, *metric, labels);
f->close_section();
}
}
}