Module: kamailio
Branch: master
Commit: bff7b033d817c6ed63f3de63dfa7f1b45ead2ff8
URL:
https://github.com/kamailio/kamailio/commit/bff7b033d817c6ed63f3de63dfa7f1b…
Author: Eloy Coto <eloy.coto(a)acalustra.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-12T10:41:54+02:00
statsd: Add labels to metrics.
A user reached me to add a way to add the custom labels into the statsd
module, so a better way to report metrics to the observability platform.
I keep the same old functions and add a new parameter to the statsd
modules to both interfaces cfg and kemi.
The full documentation can be found here:
https://docs.datadoghq.com/developers/dogstatsd/datagram_shell/?tab=metrics
So, each function can be used like this: ``` statsd_set("fooo", 1,
"inbound"); statsd_gauge("NotFound", "+1",
"outbound,carrierFoo");
statsd_gauge("AuthFailed", "+1", "carrier:foo,priority:10");
```
Signed-off-by: Eloy Coto <eloy.coto(a)acalustra.com>
Tested-by: Alex Antonevych <alex.antonevych(a)replicant.ai>
Signed-off-by: Eloy Coto <eloy.coto(a)acalustra.com>
---
Added: src/modules/statsd/doc/statsd.txt
Modified: src/modules/statsd/lib_statsd.c
Modified: src/modules/statsd/lib_statsd.h
Modified: src/modules/statsd/statsd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bff7b033d817c6ed63f3de63dfa7f1b…
Patch:
https://github.com/kamailio/kamailio/commit/bff7b033d817c6ed63f3de63dfa7f1b…