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.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Marat Gareev Sent: Wednesday, July 15, 2020 11:07 AM To: Kamailio (SER) - Users Mailing List sr-users@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