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
Updated by osmith over 2 years ago
- Assignee deleted (
osmith) - % Done changed from 0 to 50
Updated by osmith over 2 years ago
- % Done changed from 50 to 90
Patches that fix this (the commit message in the second patch probably describes the problem better than the description above):
Updated by osmith over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Actions