Thanks for reply Henning!

Yes I agree with the external collector, I am using it without issue will stick with it.

Many thanks


From: Henning Westerholt <hw@skalatan.de>
Sent: 12 March 2020 11:12
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Jonathan Hunter <hunterj91@hotmail.com>
Subject: RE: xhttp_prom - Adding new metrics for dispatcher list to monitor SIP trunk availability
 

Hello,

 

It should be possible to use e.g. a timer route to periodically fetch the status from localhost with RPC commands and to feed this into the counters etc.. from xhttp_prom.

 

But the easier way is probably just to use an external collector.

 

Cheers,

 

Henning

 

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Jonathan Hunter
Sent: Tuesday, March 10, 2020 4:13 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] xhttp_prom - Adding new metrics for dispatcher list to monitor SIP trunk availability

 

Hi Guys,

 

We are running kamailio 5.3 in our dev environment with a view to using the xhttp_prom module, so that we can monitor using prometheous.

 

It works fine in terms of getting all the internal stats and groups, however is it possible to grab the dispatcher.list output/stats using the module?

 

I know there is a collector that does this and provides the dispatcher gateway trunk status, but wondered if it could be implemented using xhttp_prom, or if external code would be required to grab the states using rpc etc?

 

Many thanks

 

Jon