<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/24468">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ns2: Use NSVC bufid in stats report<br><br>Use the new stats API to set a meaningful name for its stats group too,<br>so that they are easily to identify when reported.<br><br>Example on VTY "show stats":<br>"""<br>NSVC Peer Statistics (0)('UDP-NSE01800-NSVC01800'):<br> ALIVE response time        :        0 ms<br>NS Bind Statistics:<br> Transmit backlog length:        0 packets<br>"""<br><br>Example reporting to statsd:<br>"""<br>my-stats-reporter-prefix.ns.nsvc.UDP-NSE01800-NSVC01800.alive.delay:0|g<br>"""<br><br>Related: SYS#5456<br>Change-Id: I4c696c615ba3416f8524d0797ce06c0ecd3a18f2<br>---<br>M src/gb/gprs_ns2.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/68/24468/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c</span><br><span>index 1148d6f..2c490b4 100644</span><br><span>--- a/src/gb/gprs_ns2.c</span><br><span>+++ b/src/gb/gprs_ns2.c</span><br><span>@@ -606,6 +606,8 @@</span><br><span> </span><br><span>      bind->nsi->nsvc_rate_ctr_idx++;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+     osmo_stat_item_group_set_name(nsvc->statg, id);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         llist_add(&nsvc->list, &nse->nsvc);</span><br><span>    llist_add(&nsvc->blist, &bind->nsvc);</span><br><span>  ns2_nse_update_mtu(nse);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/24468">change 24468</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/libosmocore/+/24468"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4c696c615ba3416f8524d0797ce06c0ecd3a18f2 </div>
<div style="display:none"> Gerrit-Change-Number: 24468 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>