<div dir="ltr">The "hyphen vs underscore" 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 <<a href="mailto:tim@unkrig.dev">tim@unkrig.dev</a>> 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 "strconv.ParseFloat: parsing "-contacts": 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>