Skip to content

Commit

Permalink
restore set_name
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente committed Nov 10, 2023
1 parent c6beebf commit d1e552a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CoreServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ void CoreServer::_setup_routes(const PrometheusConfig &prom_config)
try {
auto [policy, lock] = _registry->policy_manager()->module_get_locked(p_mname);
auto scope = resource.add_scope_metrics();
scope->mutable_scope()->set_name("pktvisor/" + p_mname);
auto attr = scope->mutable_scope()->add_attributes();
attr->set_key("policy_name");
attr->mutable_value()->set_string_value(p_mname);
Expand Down

0 comments on commit d1e552a

Please sign in to comment.