[SR-Users] xhttp_prom Metric Naming Issue

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 12 15:43:43 CET 2019


Hello,

I am not familiar with prometheus, but you can create an issue on the
tracker at github.com/kamailio/kamailio and we can assign it to the the
developer of the module. You can also make a pull request with a fix
that can be reviewed and merged.

Cheers,
Daniel

On 11.12.19 11:21, ENGIN ESIN wrote:
>
> 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
> <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://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
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191212/0c379d99/attachment.html>


More information about the sr-users mailing list