Hi everyone,

I am trying to use xhttp_prom and there are some issues that i want to share 
with you.

Metric Naming:

I get warning at prometheus side like as follows,

WARN[0659] append failed  err="no token found" source="scrape.go:648" 
target="{__address__="192.168.42.1:9080", __metrics_path__="/metrics", 
__scheme__="http", instance="192.168.42.1:9080", job="vmm"}"

With respect to prometheus documentation, metric names need to fullfill 
following naming requirement -> "It must match the regex 
[a-zA-Z_:][a-zA-Z0-9_:]*"  (source: 
https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels)

However, kamailio gives unmatch outputs as follows because they have '-' char, 
(related discussion: https://github.com/prometheus/prometheus/issues/3154 )


*         kamailio_usrloc_location-contacts 0 1576046310669

*         kamailio_usrloc_location-expires 0 1576046310669

*         kamailio_usrloc_location-users 0 1576046310669

whit that naming, prometheus can not parse values of any metrics.

Documentation:

Example 1.1. Set xhttp_prom_buf_size parameter
...
modparam("xhttp", "xhttp_prom_buf_size", 1024)
...

For that example, it should be as follows,

...
modparam("xhttp_prom", "xhttp_prom_buf_size", 1024)
...





[http://www.turkcell.com.tr/downloads/bireysel/img/Tcelldis.gif] 
<http://turkcell.li/iyaani>

Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi 
tarafindan almasi amaclanan yetkili gercek ya da tuzel kisinin kullanimi 
icindir. Eger soz konusu yetkili alici degilseniz bu elektronik postanin 
icerigini aciklamaniz, kopyalamaniz, yonlendirmeniz ve kullanmaniz kesinlikle 
yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir.

TURKCELL bu mesajin icerdigi bilgilerin do?rulu?u veya eksiksiz oldugu 
konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne 
sekilde olursa olsun iceriginden, iletilmesinden, alinmasindan ve 
saklanmasindan sorumlu degildir. Bu mesajdaki gorusler yalnizca gonderen kisiye 
aittir ve TURKCELLin goruslerini yansitmayabilir

Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir.

________________________________

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient you are hereby notified that any 
dissemination, forwarding, copying or use of any of the information is strictly 
prohibited, and the e-mail should immediately be deleted.

TURKCELL makes no warranty as to the accuracy or completeness of any 
information contained in this message and hereby excludes any liability of any 
kind for the information contained therein or for the information transmission, 
reception, storage or use of such in any way whatsoever. The opinions expressed 
in this message belong to sender alone and may not necessarily reflect the 
opinions of TURKCELL.

This e-mail has been scanned for all known computer viruses.
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to