title: Is it possible to configure Prometheus to store the last saved value of a metric?
body: <p>Consider the following metrics in an HTTP endpoint:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>tourist{name="Gennady"} 4000
  Um_nik{name="Alex"} 3800
  Petr{name="Shiladitya"} 2100
  tourist{name="Gennady"} 2000</code></pre>
  </div>
  </div>
  
  Currently, Prometheus, when it finishes scraping, will remember the value of <b>tourist{name=&quot;Gennady&quot;}</b> to be 4000, and not 2000.</p>
  <p>I want to always append the new metrics at the end of file. So is there a way for Prometheus to measure the value of <b>tourist{name=&quot;Gennady&quot;}</b> to be 2000 (ie, the LAST value of the metric which it encounters)?</p>