Point was that
kamctl rpc stats.fetch usrloc
or
kamctl rpc stats.fetch shmem
both return
{
"jsonrpc": "2.0",
"error": {
"code": 500,
"message": "Method Not Found"
},
"id": 29575
}
shmem was the specific example given by Daniel Constantin Mierla so I'm not
sure why its not working.
Am Montag, 6. August 2018, 19:23:33 CEST schrieb Daniel Greenwald:
> Looking to get usrloc stats in pure json format.
>
> When trying to run from the example above:
>
> kamctl rpc stats.fetch shmem:
>
> I get a message of Method Not Found
>
>
> Was this command not released, or is there
Looking to get usrloc stats in pure json format.
When trying to run from the example above:
kamctl rpc stats.fetch shmem:
I get a message of Method Not Found
Was this command not released, or is there another way to do this?
Thanks
On Thu, Sep 21, 2017 at 10:53 AM, Daniel-Constantin
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
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 wrote:
>Alex,
>
>This is how that output was generated:
>
># kamctl stats shmem | jq .
>
>Thanks!
>
>~Noah
>
>> On Sep 20, 2017, at 1:14 PM,
Alex,
This is how that output was generated:
# kamctl stats shmem | jq .
Thanks!
~Noah
> On Sep 20, 2017, at 1:14 PM, Alex Balashov wrote:
>
> Hello,
>
> The jsonrpc-s module has a pretty_print option. Or is that not where you're
> dispatching this JSON output
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@lists.kamailio.org
Hey all,
I was wondering if the kamctl stats output could be updated to provide a bit
more parseable JSON? For instance:
# kamctl stats shmem | jq .
{
"jsonrpc": "2.0",
"result": [
"shmem:fragments = 18",
"shmem:free_size = 467187808",
"shmem:max_used_size = 69694104",