mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Rework everything to access the prometheus-cpp objects more directly
This commit is contained in:
parent
ec3e68928f
commit
84aa308527
17 changed files with 469 additions and 606 deletions
|
@ -47,7 +47,7 @@ void EventHandler::Call(Args* vl, bool no_remote, double ts) {
|
|||
if ( ! call_count ) {
|
||||
static auto eh_invocations_family =
|
||||
telemetry_mgr->CounterFamily("zeek", "event-handler-invocations", {"name"},
|
||||
"Number of times the given event handler was called", "1", true);
|
||||
"Number of times the given event handler was called", "", true);
|
||||
|
||||
call_count = eh_invocations_family->GetOrAdd({{"name", name}});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue