<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 6 Apr 2021, at 12:14, Marat Gareev <<a href="mailto:maratkin94@gmail.com" class="">maratkin94@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">It looks like custom metrics are only available in xHTTP_PROM module.</div></div></blockquote>You can read them with jsonrpc as well and add them as custom </div><div>counters in your snmpd.conf</div><div><br class=""></div><div>/O<br class=""><blockquote type="cite" class=""><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 6 апр. 2021 г. в 10:25, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>>:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><p class="">Just for sake of completion of the knowledge here in the mailing
list archive: do custom counters become available in snmpstats?</p><p class="">Cheers,<br class="">
Daniel<br class="">
</p>
<div class="">On 30.03.21 13:55, Marat Gareev wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">Thanks, Daniel.
<div class=""><br class="">
</div>
<div class="">In this case I'll define a custom counter.</div>
<div class=""><br class="">
</div>
<div class="">Marat</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вт, 30 мар. 2021 г. в 14:06,
Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank" class="">miconda@gmail.com</a>>:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><p class="">Hello,</p><p class="">the statistics from the core are only for stateless
forwarding.</p><p class="">You can check if tmx module offers the numbers you are
looking for (load the module and check the output of
'kamctl stats').</p><p class="">If not, you can also define new statistics in the config
with the module:</p><p class=""> * <a href="https://www.kamailio.org/docs/modules/stable/modules/statistics.html" target="_blank" class="">https://www.kamailio.org/docs/modules/stable/modules/statistics.html</a></p><p class="">An you can incremented when you use t_relay().
Alternative, you can use onsend_route for requests.</p><p class="">On the other hand, I do not use snmp module to see if
there is any option to export config-defined stats to
snmp.</p><p class="">Firthermore, maybe you can switch to statsd module for
pushing out the stats or pull them via rpc.<br class="">
</p><p class="">Cheers,<br class="">
Daniel<br class="">
</p>
<div class="">On 25.03.21 16:45, Marat Gareev wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">Hello,
<div class=""><br class="">
</div>
<div class="">I'm trying to get the total number of SIP request
messages sent out by the proxy with <b class="">kamailioSIPSummaryOutRequest</b> scalar.</div>
<div class="">But the value doesn't increase if I use t_relay()
(with forward() counter works).</div>
<div class=""><br class="">
</div>
<div class="">Related <a href="https://opensips.org/pipermail/users/2012-December/024045.html" target="_blank" class="">thread</a>.</div>
<div class=""><br class="">
</div>
<div class="">Is there another SNMP counter which contains a
total number of OUT requests?</div>
<div class=""><br class="">
</div>
<div class="">Marat</div>
</div>
<br class="">
<fieldset class=""></fieldset>
<pre class="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" class="">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72" class="">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank" class="">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" class="">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" class="">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" class="">https://www.paypal.me/dcmierla</a></pre>
</div>
</blockquote>
</div>
</blockquote>
<pre cols="72" class="">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank" class="">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" class="">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" class="">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" class="">https://www.paypal.me/dcmierla</a></pre>
</div>
</blockquote></div>
_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></body></html>