mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Cluster support for the metrics framework returns and all tests work again.
This commit is contained in:
parent
6600e62ea3
commit
47f58e6340
10 changed files with 76 additions and 67 deletions
|
@ -1,16 +1,12 @@
|
|||
# @TEST-EXEC: bro %INPUT
|
||||
# @TEST-EXEC: btest-diff metrics.log
|
||||
|
||||
redef enum Metrics::ID += {
|
||||
TEST_METRIC,
|
||||
};
|
||||
|
||||
event bro_init() &priority=5
|
||||
{
|
||||
Metrics::add_filter(TEST_METRIC,
|
||||
Metrics::add_filter("test.metric",
|
||||
[$name="foo-bar",
|
||||
$break_interval=3secs]);
|
||||
Metrics::add_data(TEST_METRIC, [$host=1.2.3.4], 3);
|
||||
Metrics::add_data(TEST_METRIC, [$host=6.5.4.3], 2);
|
||||
Metrics::add_data(TEST_METRIC, [$host=7.2.1.5], 1);
|
||||
Metrics::add_data("test.metric", [$host=1.2.3.4], 3);
|
||||
Metrics::add_data("test.metric", [$host=6.5.4.3], 2);
|
||||
Metrics::add_data("test.metric", [$host=7.2.1.5], 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue