Project

General

Profile

Actions

Bug #5215

closed

stats: may not send last item value with "flush-period 0"

Added by osmith 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)