[SR-Users] Reset Prometheus counter once

Henning Westerholt hw at skalatan.de
Wed Jul 15 15:42:43 CEST 2020


Hello,

you can e.g. use a timer route to periodically reset this. Or just filter for a special custom SIP request method that you send to your server.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Marat Gareev
Sent: Wednesday, July 15, 2020 11:07 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Reset Prometheus counter once

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/e361aca3/attachment.htm>


More information about the sr-users mailing list