mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
The app metrics break interval is now configurable.
This commit is contained in:
parent
df6a180023
commit
77694cc884
1 changed files with 8 additions and 3 deletions
|
@ -5,11 +5,16 @@
|
|||
|
||||
module AppMetrics;
|
||||
|
||||
export {
|
||||
## The metric break interval for the default stats collected by this script.
|
||||
const break_interval = 1hr &redef;
|
||||
}
|
||||
|
||||
event bro_init() &priority=3
|
||||
{
|
||||
Metrics::add_filter("apps.bytes", [$break_interval=1hr]);
|
||||
Metrics::add_filter("apps.views", [$break_interval=1hr]);
|
||||
Metrics::add_filter("apps.users", [$break_interval=1hr]);
|
||||
Metrics::add_filter("apps.bytes", [$break_interval=break_interval]);
|
||||
Metrics::add_filter("apps.views", [$break_interval=break_interval]);
|
||||
Metrics::add_filter("apps.users", [$break_interval=break_interval]);
|
||||
}
|
||||
|
||||
function do_metric(id: conn_id, hostname: string, size: count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue