Re: Min Max Values
Steve Shipway <[email protected]>
| Newsgroups | gmane.comp.db.rrdtool.user |
|---|---|
| Message-ID | <5820DC553954E44FA1A36C78323AD14859F31E78@uxcn10-6.UoA.auckland.ac.nz> |
> I'm a bloody beginner. > I stred some DS in a RRD. All works fine. > I use > DS:i1:GAUGE:60:-10:100 \ > RRA:AVERAGE:0.5:1:86400 > > I understand: over 60 sek, there will be a average value storeed in the > database Thats fine, but I like to have the max und min values additional. > All I found a description for data consollidation for min/max. Your DS line defines the data source; this says that you will get a new data sample every 60 seconds (the base sample interval), that can be between -10 and 100. Your RRA specifies how this will be stored; in this case, you will keep 86400 consolidated points, where each one is an average of a set of just 1 sample. In other words, you'll store this data point (after normalisation!) and keep 86400 of them. They will be spaced 60s apart (the number of points in the set, multiplied by the sample interval), and so will cover one day. While you can also define a MAX:0.5:1 and MIN:0.5:1 RRA, a little thought will show that the maximum and minimum of a set of 1 sample will be the same as the average of that set! There is only a difference when you are consolidating more than 1 in your set... If you want to know the min/max over the 1min interval, you need to take more samples. For example, you could sample every 10 sec, and make your RRA an AVERAGE:0.5:6 -- average of a set of 6. This will make the RRA consolidated data points 60sec apart as in your first example, but a corresponding MAX:0.5:6 will likely be different... (Note: the 0.5 in the RRA is the fraction of the consolidated data that is permitted to be Unknown. Generally, to always have this as 0.5 is fine) Hope this makes it clearer. Steve Steve Shipway [email protected] _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
smime.p7s
(application/pkcs7-signature, 10.1 KB) - not displayed