<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Store previous value with Save only changed values enabled]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I'd like to share an observation on the new DCI setting Save only changed values.</p>
<p dir="auto">Let's say we track the size of a database file, polling once a day. It is 10 GB, and it doesn't change from day to day, so only the first value is stored. The DCI timestamp is updated each day (this is important).</p>
<p dir="auto">One month later the file size suddenly increases from 10 to 30 GB. The new DCI value is stored. Let's take a look att the historical values:</p>
<p dir="auto">Day 1: 10 GB<br />
Day 30: 30 GB</p>
<p dir="auto">Now, imagine we plot a graph. It would be a straight line increasing each day, even though we know that the file size is 10 GB up until day 30. What I would like to see is the same graph we would have if we polled each day with "Save only changed values" disabled, a graph that shows that the file size was 10 GB on day 29 and 30 GB on day 30.</p>
<p dir="auto">I suppose it could be done this way:<br />
On day 30, when we detect that the file size is different from the previous poll, store *both* the old value (10 GB) with the last timestamp (Day 29), and the new value (30 GB) with the current timestamp (Day 30). The historic values would look like this:</p>
<p dir="auto">Day 1: 10 GB<br />
Day 29: 10 GB<br />
Day 30: 30 GB</p>
<p dir="auto">When plotting a graph, if would correctly show that the file size is constant up until day 30.</p>
]]></description><link>https://forum.netxms.org/topic/7561/store-previous-value-with-save-only-changed-values-enabled</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:45:42 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7561.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Nov 2022 10:56:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Store previous value with Save only changed values enabled on Thu, 17 Nov 2022 06:49:12 GMT]]></title><description><![CDATA[<p dir="auto">Sounds like chart needs an option like grafana has that is called "step before" and "step after" meaning graph has a straight line until change in value</p>
]]></description><link>https://forum.netxms.org/post/32034</link><guid isPermaLink="true">https://forum.netxms.org/post/32034</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Thu, 17 Nov 2022 06:49:12 GMT</pubDate></item></channel></rss>