Hello,
I have confuse about this timeout: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_pr...
Is there reason for forced deletion of unused metrics?
Let's imagine a situation: Zabbix reads metrics at a certain interval, unused metrics are deleted if they are not used for a period of time (xhttp_prom_timeout). I drew 2 cases when Zabbix will receive the same value, but we cannot say unambiguously whether these are new values or not. [image: xhttp_prom_timeout.jpg]
Regards, Marat
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_pr...
Is there reason for forced deletion of unused metrics?
Only reason is to save memory.
Let's imagine a situation: Zabbix reads metrics at a certain interval, unused metrics are deleted if they are not used for a period of time (xhttp_prom_timeout). I drew 2 cases when Zabbix will receive the same value, but we cannot say unambiguously whether these are new values or not. xhttp_prom_timeout.jpg
I could think of a mechanism to disable timeout, but right now it is not possible.
Default timeout is 60 minutes.
What you show in the example is a metric that is deleted before it stopped being used. That does not make sense. Because timeout is customizable you should increase its value to something that suits you (large enough).
Only constraint is memory available to store metrics. If you set enough memory for the number of metrics you expect to use, no problem.
Regards,
Vicente.
Regards, Marat
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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_pr...
Is there reason for forced deletion of unused metrics?
Only reason is to save memory.
Let's imagine a situation: Zabbix reads metrics at a certain interval, unused metrics are deleted if they are not used for a period of time (xhttp_prom_timeout). I drew 2 cases when Zabbix will receive the same value, but we cannot say unambiguously whether these are new values or not. xhttp_prom_timeout.jpg
I could think of a mechanism to disable timeout, but right now it is not possible.
Default timeout is 60 minutes.
What you show in the example is a metric that is deleted before it stopped being used. That does not make sense. Because timeout is customizable you should increase its value to something that suits you (large enough).
Only constraint is memory available to store metrics. If you set enough memory for the number of metrics you expect to use, no problem.
Regards,
Vicente.
Regards, Marat
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello Vicente,
Unfortunately, increasing the timeout does not solve the problem. I can set the parameter to 30 days, but the metric can be triggered after 30 days and 1 minute, for example.
Disabling the parameter would be a good solution. I'll think about it too.
Regards, Marat
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,
Unfortunately, increasing the timeout does not solve the problem. I can set the parameter to 30 days, but the metric can be triggered after 30 days and 1 minute, for example.
Disabling the parameter would be a good solution. I'll think about it too.
Regards, Marat
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users