Re: [SR-Users] Deletion of Prometheus metrics

2020-08-07 Thread Vicente Hernando
Hello Marat, soon I will upload a new version of xhttp_prom module. I will set a disabling timeout mechanism there. In the meanwhile you could set the timeout for 1 year, or 10 years, a value probably large enough. Regards, Vicente. On 8/7/20 8:36 AM, Marat Gareev wrote: Hello Vicente,

Re: [SR-Users] Deletion of Prometheus metrics

2020-08-06 Thread Vicente Hernando
Hello Marat, answer inside text: On 8/6/20 1:17 PM, Marat Gareev wrote: Hello, I have confuse about this timeout: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_timeout Is there reason for forced deletion of unused metrics? Only reason is to

Re: [SR-Users] Deletion of Prometheus metrics

2020-08-06 Thread Vicente Hernando
Hello Marat, answer inside text: On 8/6/20 1:17 PM, Marat Gareev wrote: Hello, I have confuse about this timeout: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_timeout Is there reason for forced deletion of unused metrics? Only reason is to

Re: [SR-Users] Reset Prometheus counter once

2020-07-16 Thread Vicente Hernando
Hello Marat, (my previous email did not pass moderation filter) modparam only declares a counter because it only defines label names. When a counter is added or reset then label values are set so the counter is actually created. If you want a counter to be reset once, you could use a trick.

Re: [SR-Users] Reset Prometheus counter once

2020-07-16 Thread Vicente Hernando
Hello Marat, modparam only declares a counter because it only defines label names. When a counter is added or reset then label values are set so the counter is actually created. If you want a counter to be reset once, you could use a trick. May be setting a shared variable, change that