Actions
Bug #5215
closedstats: may not send last item value with "flush-period 0"
Start date:
08/19/2021
Due date:
% Done:
100%
Spec Reference:
Description
In OsmoBSC, the counters BTS_STAT_CHAN_*_{TOTAL,USED} are set to 0 when a BTS disconnects (patch). But this last value may not get sent to a stats reporter.
This is because:- one stats reporter value is generated from the maximum value of one or more osmo_stat_item values (counter values) (patch)
- Example: osmo_stat_item values 20, 0 => 20 is highest and gets reported
- if no more osmo_stat_item values arrive, and "flush-period 0" (default) is set in the vty stats config, there is no logic to report the last osmo_stats_item value (0) if it is different from what was reported previously (20)
- so on the receiving statsd, it looks like the value stays at a constant of 20 instead of 0
Actions