mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00

This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
14 lines
418 B
Text
14 lines
418 B
Text
global http_counter_cf = Telemetry::register_counter_family([
|
|
$prefix="zeek",
|
|
$name="monitored_http_requests",
|
|
$unit="1",
|
|
$help_text="Number of http requests observed"
|
|
]);
|
|
|
|
global http_counter = Telemetry::counter_with(http_counter_cf);
|
|
|
|
event http_request(c: connection, method: string, original_URI: string,
|
|
unescaped_URI: string, version: string)
|
|
{
|
|
Telemetry::counter_inc(http_counter);
|
|
}
|