Module: kamailio
Branch: master
Commit: ddd277139165f39406832ddd557c2b56b75a7100
URL:
https://github.com/kamailio/kamailio/commit/ddd277139165f39406832ddd557c2b5…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2020-04-28T10:24:04+02:00
usrloc: change "-" for "_" in stats name to be prometheus compliant
---
Modified: src/modules/usrloc/udomain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ddd277139165f39406832ddd557c2b5…
Patch:
https://github.com/kamailio/kamailio/commit/ddd277139165f39406832ddd557c2b5…
---
diff --git a/src/modules/usrloc/udomain.c b/src/modules/usrloc/udomain.c
index 59ddff92d4..321b72b64a 100644
--- a/src/modules/usrloc/udomain.c
+++ b/src/modules/usrloc/udomain.c
@@ -61,7 +61,7 @@ static char *build_stat_name( str* domain, char *var_name)
}
memcpy( s, domain->s, domain->len);
p = s + domain->len;
- *(p++) = '-';
+ *(p++) = '_';
memcpy( p , var_name, strlen(var_name));
p += strlen(var_name);
*(p++) = 0;