We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab14a07 commit 28a389bCopy full SHA for 28a389b
src/CoreServer.cpp
@@ -448,7 +448,10 @@ void CoreServer::_setup_routes(const PrometheusConfig &prom_config)
448
try {
449
auto [policy, lock] = _registry->policy_manager()->module_get_locked(p_mname);
450
auto scope = resource.add_scope_metrics();
451
- scope->mutable_scope()->set_name(p_mname);
+ scope->mutable_scope()->set_name("pktvisor/" + p_mname);
452
+ auto attr = scope->mutable_scope()->add_attributes();
453
+ attr->set_key("policy_name");
454
+ attr->mutable_value()->set_string_value(p_mname);
455
policy->opentelemetry_metrics(*scope);
456
} catch (const std::exception &) {
457
return false;
0 commit comments