[SR-Users] Reset Prometheus counter once

Marat Gareev maratkin94 at gmail.com
Wed Jul 15 11:06:51 CEST 2020


Hello.

Are there any ways to reset the Prometheus counter once?
I can do something like this, but counter will be reset on each request

loadmodule "xhttp_prom.so"
> modparam("xhttp_prom", "prom_counter", "name=mycounter;")
> route {
>     prom_counter_reset("mycounter");
> }


Otherwise, I will not receive the counter until a special and rare event
occurs.

Regards,
Marat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200715/81956f41/attachment.htm>


More information about the sr-users mailing list