Hello,

many thanks for shedding some light on this one. Missunderstood rrd4j nearly completley as I thougt rrd4j takes care of having enough values for filling the archive as desired, e.g. max and min. In my configuration I assumed rrd4j takes the last 24h every minute and afterwards stored the max (and min) value by the last two functions. I was not aware of the fact, rrd4j is calculating them one after the other. I thought they are equal/at same time handled and start therefore with same “initial” step size of 1min.

For my example this would mean:

- every 5min the average (of the last 5 values due to fixed step size of 60sec) is stored (8928 in total) => 31d = 1 month
- I now assumed the second one would store every 30min the average. But according to your explanation it’s not assigned to the initial step size of 60sec, but in fact to the one of the archive before (5min) ==> so the second one would calculate every 30 * (5 * 60sec (from first one)) = 150 min = 2,5h an average value and would store in total 8784 values
- third average is working same and also the mina nd max ones…

That was not my intention at all…

So in my case for the min and max values I should first store for 24h all values every minute and afterwards have the given min/max archive applied…

Would this one work:

```
tempinside5min.archives=AVERAGE,0.5,5,8928 // average values calculated from 5min for total length of one month
tempinside30min.archives=AVERAGE,0.5,30,8784 // average from 30min
tempinside60min.archives=AVERAGE,0.5,60,17520 // average from every hour
tempinsidemin.archives=MIN,0.5,1440,1825 // min temp from one day/24h
tempinsidemax.archives=MAX,0.5,1440,1825 // max temp from one day/24h
```

Or some could be put in one line:

```
tempinside5min.archives=AVERAGE,0.5,5,8928:AVERAGE,0.5,6,8784:AVERAGE,0.5,2,17520
```

first one stores average every 5min, second every 6 * 5min = 30min and last one every 2 * 6 * 5min = 1h.

For integrating graphs the linked demo is in my opinion some not so clever choice. Indeed it showed how to get several plots in one diagramm. But the content is some kind of very confusing… How could a “todays min/max” change within 24h for several times if you have a look on the day and week plots?

I put some efforts to start the rrd4j at midnight to get out of this as the normal rrd paraemters for the definition of a starting point seem to be not working…

For other readers: getting influx and graphana working in CometVisu is quite easy, but “breaks” somehow the concept as graphana could be only included as (i)Frame givng complete control to graphana. However: it’s working fine.

Thanks again for your help and showing me the correct implementation