mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Remove is_sum arguments from counters and gauges
This commit is contained in:
parent
46ff48c29a
commit
93717ca8f8
8 changed files with 47 additions and 63 deletions
|
@ -297,8 +297,7 @@ function register_counter_family(opts: MetricOpts): CounterFamily
|
|||
opts$name,
|
||||
opts$labels,
|
||||
opts$help_text,
|
||||
opts$unit,
|
||||
opts?$is_total ? opts$is_total : T
|
||||
opts$unit
|
||||
);
|
||||
return CounterFamily($__family=f, $__labels=opts$labels);
|
||||
}
|
||||
|
@ -357,8 +356,7 @@ function register_gauge_family(opts: MetricOpts): GaugeFamily
|
|||
opts$name,
|
||||
opts$labels,
|
||||
opts$help_text,
|
||||
opts$unit,
|
||||
opts?$is_total ? opts$is_total : F
|
||||
opts$unit
|
||||
);
|
||||
return GaugeFamily($__family=f, $__labels=opts$labels);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue