[SR-Users] Kamctl Stats Update

Noah Mehl noahmehl at gmail.com
Wed Sep 20 19:34:27 CEST 2017


Alex,

We are using this for time series monitoring (e.g. Zabbix).  It doesn’t make sense, at least to me, to implement jsonrpc-s just to get the kamctl stats output.  I mean, currently I’m just chaining the output with cut and tr, and that’s fine.  I just suggest utilizing JSON a bit better here.

Thanks!

~Noah

> On Sep 20, 2017, at 1:17 PM, Alex Balashov <abalashov at evaristesys.com> wrote:
> 
> You may want to consider an alternate and more streamlined method of pulling these. 
> 
> On September 20, 2017 1:16:49 PM EDT, Noah Mehl <noahmehl at gmail.com> wrote:
>> Alex,
>> 
>> This is how that output was generated:
>> 
>> # kamctl stats shmem | jq .
>> 
>> Thanks!
>> 
>> ~Noah
>> 
>>> On Sep 20, 2017, at 1:14 PM, Alex Balashov
>> <abalashov at evaristesys.com> wrote:
>>> 
>>> Hello,
>>> 
>>> The jsonrpc-s module has a pretty_print option. Or is that not where
>> you're dispatching this JSON output from?
>>> 
>>> 
>>> -- Alex
>>> 
>>> --
>>> Sent via mobile, please forgive typos and brevity. 
>>> 
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> 
>> 
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
> -- Alex
> 
> --
> Sent via mobile, please forgive typos and brevity. 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list