vhernando left a comment (kamailio/kamailio#4508)
Hello Joel,
old Prometheus versions did not allow hyphens.
That was changed in some cases to support UTF-8 standard:
https://prometheus.io/docs/concepts/data_model/
https://prometheus.io/docs/guides/utf8/#querying
If you want to disable the translation, just comment these lines in
prom_body_name_printf function at prom.c file:
```
/* Change - into _ to accomplish with Prometheus guidelines for metric names */
int i;
for(i = 0; i < len; i++) {
if(p[i] == '-') {
p[i] = '_';
}
}
```
https://github.com/kamailio/kamailio/blob/master/src/modules/xhttp_prom/prom.c#L105
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4508#issuecomment-3610114387
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4508/[email protected]>_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!