<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hello Marat,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">answer inside text:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 8/6/20 1:17 PM, Marat Gareev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGBFc1Wus74hePNCMq_KPGD5yFNMk5Z+H7m5xv1QByYPs=JpiQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I have confuse about this timeout:</div>
        <div><a
href="https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_timeout"
            moz-do-not-send="true">https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_timeout</a><br>
        </div>
        <div><br>
        </div>
        <div>Is there reason for forced deletion of unused metrics?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <p>Only reason is to save memory.</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAGBFc1Wus74hePNCMq_KPGD5yFNMk5Z+H7m5xv1QByYPs=JpiQ@mail.gmail.com">
      <div dir="ltr">
        <div>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).<br>
        </div>
        <div>I drew 2 cases when Zabbix will receive the same value, but
          we cannot say unambiguously whether these are new values or
          not.<br>
        </div>
        <div>
          <div><img src="cid:part2.C07D98FA.D2AA5374@sonoc.io"
              alt="xhttp_prom_timeout.jpg" class="" width="320"
              height="310"><br>
          </div>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <p>I could think of a mechanism to disable timeout, but right now it
      is not possible.</p>
    <p>Default timeout is 60 minutes.<br>
    </p>
    <p>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).</p>
    <p>Only constraint is memory available to store metrics. If you set
      enough memory for the number of metrics you expect to use, no
      problem.<br>
    </p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Vicente.</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAGBFc1Wus74hePNCMq_KPGD5yFNMk5Z+H7m5xv1QByYPs=JpiQ@mail.gmail.com">
      <div dir="ltr">
        <div>Regards,<br>
          Marat</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>