This post is more than 5 years old
8 Posts
0
167469
July 28th, 2010 15:00
Current vs. Latest vs. Period?
I've been playing with building data tables for some dashboards, and I've run across something that I need help with. I'm seeing that for a given metric there's sometimes multiple values: Current, Latest, Period. In particular, I'm looking at the metrics for Datastores. What's the difference between them? I'm assuming that Period is a cumulative value over the given time period? But I'm finding that the values for Current and Latest are different. I want to know the most recent value. Which one should I use?
Thanks!!
Thanks!!


lmurphy1
57 Posts
0
August 2nd, 2010 16:00
The history property has a list of values for all collected data in the time range period
The current property is the last entry from the history for the current time range, as long as it hasn't gone stale.
The latest property is the very latest value that we have in any given time range.
The period property has the value over the entire time range.
------------------------------------------------------------------------------------------------------
The current value is defined to be the same as the latest value unless the latest value is not considered fresh in which case its value is null.
The current property is the last entry from the history for the current time range, as long as it hasn't gone stale.
The latest property is the very latest value that we have in any given time range.
If the time range is set to the past then the current property behaves like the latest property for that time range.
Freshness: The latest value of a metric is considered fresh if it was collected more recently than:
current time - (3 x the last sample period)
More specifically: The Foglight data source implementation finds the latest value in the specified time range, and performs a freshness test only if the end time of the time range is within one minute of the current time, assuming the samplePeriod is 20s. If the freshness test fails, then the current property will be unset. The freshness test will fail if the end time of the latest value is more than three sample periods from the current time.
HTH!
-Larry
changf03
22 Posts
0
January 12th, 2012 20:00
Hi Larry,
So if I want to check the average and max CPU utilization for the given time range, I would use data from Period correct?
DELL-Brian W
59 Posts
0
May 14th, 2012 02:00
That's correct Frank.
Regards,
Brian Wheeldon