Project

General

Profile

Actions

Bug #5215

closed

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

Added by osmith 3 months ago. Updated 3 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 #1

Updated by osmith 3 months ago

  • Status changed from New to In Progress
Actions #2

Updated by osmith 3 months ago

  • Assignee deleted (osmith)
  • % Done changed from 0 to 50
Actions #3

Updated by osmith 3 months ago

  • Assignee set to osmith
Actions #4

Updated by osmith 3 months 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):

Actions #5

Updated by osmith 3 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)