[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    Re: [SR-Users] XHTTP_Prom syntax error with usrloc in Kamailio 5.3
From:       Sergiu Pojoga <pojogas () gmail ! com>
Date:       2020-09-30 13:51:07
Message-ID: CAJZsGCmt11rp1mDZjJqwSDej9i+YD1PrFn_aVd4-1k_o8Yjfiw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The "hyphen vs underscore" topic has been previously discussed, check out
https://www.mail-archive.com/sr-users@lists.kamailio.org/msg12385.html

On Wed, Sep 30, 2020 at 9:36 AM Tim Unkrig <tim@unkrig.dev> wrote:

> Hello hello,
>
> I would like to monitor our production kamailio cluster (5.3) with
> prometheus and I was in the beginning so happy to spot the xhhtp_prom
> module.
> But when we enabled it, the output was in view of prometheus malformed in
> combination with the usrloc module, we got the following output:
>
> kamailio_usrloc_location-contacts 0 1597934423943
> kamailio_usrloc_location-expires 0 1597934423943
> kamailio_usrloc_location-users 0 1597934423943
>
> Prometheus only accepts "_"   instead of "-". So unfortunately I get
> "strconv.ParseFloat: parsing "-contacts": invalid syntax" on the prometheus
> primary node, when I activated the scraper.
> This has been issued in the master branch of kamailio with a sanatize
> function for that problem. But I would like to avoid compiling modules by
> myself, because this can be messy from time to time.
> That īs why my question, is there maybe another way of fixing this?
>
> I really appreciate any comments here and thanks for your time,
> Tim Unkrig
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>

[Attachment #5 (text/html)]

<div dir="ltr">The &quot;hyphen vs underscore&quot; topic has been previously \
discussed, check out  <a \
href="https://www.mail-archive.com/sr-users@lists.kamailio.org/msg12385.html">https://www.mail-archive.com/sr-users@lists.kamailio.org/msg12385.html</a></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 30, 2020 at 9:36 AM \
Tim Unkrig &lt;<a href="mailto:tim@unkrig.dev">tim@unkrig.dev</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello hello,<br> <br>
I would like to monitor our production kamailio cluster (5.3) with prometheus and I \
was in the beginning so happy to spot the xhhtp_prom module.<br> But when we enabled \
it, the output was in view of prometheus malformed in combination with the usrloc \
module, we got the following output:<br> <br>
kamailio_usrloc_location-contacts 0 1597934423943<br>
kamailio_usrloc_location-expires 0 1597934423943<br>
kamailio_usrloc_location-users 0 1597934423943<br>
<br>
Prometheus only accepts "_"     instead of "-". So unfortunately I get \
&quot;strconv.ParseFloat: parsing &quot;-contacts&quot;: invalid syntax" on the \
prometheus primary node, when I activated the scraper.<br> This has been issued in \
the master branch of kamailio with a sanatize function for that problem. But I would \
like to avoid compiling modules by myself, because this can be messy from time to \
time.<br> That īs why my question, is there maybe another way of fixing this?<br>
<br>
I really appreciate any comments here and thanks for your time,<br>
Tim Unkrig<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a><br> <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" \
target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br> \
</blockquote></div>



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic