mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Restore label_names field in MetricOpts record
This commit is contained in:
parent
1cdca7c1d0
commit
99e64aa113
6 changed files with 55 additions and 46 deletions
|
@ -140,9 +140,9 @@ event zeek_init()
|
|||
$prefix="btest",
|
||||
$name="btest_testing_gauge",
|
||||
$unit="",
|
||||
$help_text="Btest testing"],
|
||||
vector("dim_1"),
|
||||
);
|
||||
$help_text="Btest testing",
|
||||
$label_names=vector("dim_1"),
|
||||
]);
|
||||
local gauge = Telemetry::gauge_with(gauge_family, vector("dim_1_value"));
|
||||
print to_json(gauge);
|
||||
print to_json(gauge_family);
|
||||
|
@ -151,9 +151,9 @@ event zeek_init()
|
|||
$prefix="btest",
|
||||
$name="btest_testing_counter",
|
||||
$unit="",
|
||||
$help_text="Btest testing"],
|
||||
vector("dim_1"),
|
||||
);
|
||||
$help_text="Btest testing",
|
||||
$label_names=vector("dim_1"),
|
||||
]);
|
||||
local counter = Telemetry::counter_with(counter_family, vector("dim_1_value"));
|
||||
print to_json(counter);
|
||||
print to_json(counter_family);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue