Change in osmo-bsc[master]: stats: add BTS uptime counter

iedemam gerrit-no-reply at
Fri Mar 5 17:25:35 UTC 2021

iedemam has posted comments on this change. ( )

Change subject: stats: add BTS uptime counter

Patch Set 2:


In this approach, I've tried to be much less intrusive in the scheduling and counting. Now it is only triggered every 10 seconds. I'd like to actually have it match the stats interval but I can't see how to pull that value out of the config yet.

Each time it is triggered, we calculate change in uptime for each BTS and add it to the counter. It is stored with the same accuracy as the existing uptime outputs in VTY. I am also no longer judging what "uptime" means. I rely on the existing counters for that.

Hopefully this is closer to what could land in master. I think a lot of people would find it useful to have BTS uptime exported over statsd without any further infrastructure, scripts, etc needed.

Let me know what else I can refactor or reconsider. Thanks as always for your time.


To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ib17674bbe95e828cebff12de9e0b30f06447ef6c
Gerrit-Change-Number: 23234
Gerrit-PatchSet: 2
Gerrit-Owner: iedemam <michael at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at>
Gerrit-Comment-Date: Fri, 05 Mar 2021 17:25:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list