<p style="white-space: pre-wrap; word-wrap: break-word;">Hi,</p><p style="white-space: pre-wrap; word-wrap: break-word;">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.</p><p style="white-space: pre-wrap; word-wrap: break-word;">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.</p><p style="white-space: pre-wrap; word-wrap: break-word;">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.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Let me know what else I can refactor or reconsider. Thanks as always for your time.</p><p style="white-space: pre-wrap; word-wrap: break-word;">-Michael</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23234">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23234">change 23234</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bsc/+/23234"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib17674bbe95e828cebff12de9e0b30f06447ef6c </div>
<div style="display:none"> Gerrit-Change-Number: 23234 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: iedemam <michael@kapsulate.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 05 Mar 2021 17:25:35 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>