Reputation: 1601
CloudWatch dashboard - show line or stacked area with the last metric value
My server reports the latest value when it changes. In the example we see that the server reported 5, then 4, and then 6 (see image)
How can I achieve this behavior ?
I see that their is an option for NUMBER but if there is a gap between the datapoints, it will show that gap.
I don't want to see any gaps. The last value should be seen until the server sends a new value
Thanks
Upvotes: 0
Views: 57
Reputation: 432
You can use FILL to fill gap, and REPEAT option to have the latest value displayed.
You need to add a new Math expression and select FILL
like following:
FILL(m1, REPEAT)
Where m1 is your metric expression.
FILL
Fills the missing values of a time series. There are several options for the values to use as the filler for missing values:
You can specify a value to use as the filler value.
You can specify a metric to use as the filler value.
You can use the REPEAT keyword to fill missing values with the most recent actual value of the metric before the missing value.
You can use the LINEAR keyword to fill the missing values with values that create a linear interpolation between the values at the beginning and the end of the gap.
Upvotes: 0