Prometheus SIP metrics details

mbedial

Member
Hi,
we are integrating our WCS with Prometheus.
I've been searching for the detail of the metrics , I mean, if the values are gauges, counters, etc, but I didn't found toomuch info.

Most of all we are interested in SIP calls monitoring , and I see these values:


-----Call Stats-----
sip_processed_calls=5
sip_calls_state=established/0;trying/0;ringing/0;ring/0;ring_media/0;hold/0;busy/0;finish/0;session_progress/0;pending/0;failed/0
sip_calls=0
sip_calls_established=0
sip_calls_in=0
sip_calls_out=0
sip_calls_per_second=0.00
-----Sip Stats-----
sip_registered=15


Where can we find detalied info about the type and meaning of the metrics?

Thanks in advance
 

Max

Administrator
Staff member
Good day.
All the SIP metrics are described in this table (see call_stats and sip_stats sections):
sip_callsNumber of SIP calls
sip_calls_establishedNumber of active SIP calls
sip_calls_inNumber of incoming SIP calls
sip_calls_outNumber of outgoing SIP calls
sip_calls_per_second (cps)Number of SIP calls per second
sip_registeredNumber of clients in the REGISTERED state
sip_calls_state displays how many calls in certain state on server at the moment.
 

mbedial

Member
Hi again max.
We have integrated it, but we've found a problem. To be exact, prometheus waits float metrics with point, but no with comma. We can see some correct metrics but other no, like theses:

network_stats{param="global_bandwidth_in"} 0,000
network_stats{param="global_bandwidth_out"} 0,000


See the attached file with the failed parser.
 

Attachments

Max

Administrator
Staff member
We have integrated it, but we've found a problem. To be exact, prometheus waits float metrics with point, but no with comma. We can see some correct metrics but other no, like theses:

network_stats{param="global_bandwidth_in"} 0,000
network_stats{param="global_bandwidth_out"} 0,000
This seems to be system locale issue. Please check if system locale is set to en_US:
Code:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
 

mbedial

Member
Actually the locale is:

locale
LANG=es_ES.UTF-8
LANGUAGE=
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=


Is mandatory to have en_US ?
 
Top