amazon web services - CloudWatch dashboard - show line or stacked area with the last metric value - Stack Overflow

admin2025-05-01  1

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

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

Share Improve this question edited Jan 15 at 23:43 fa44 5511 gold badge4 silver badges11 bronze badges asked Jan 2 at 16:02 Maayan HopeMaayan Hope 1,6211 gold badge19 silver badges35 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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.

转载请注明原文地址:http://www.anycun.com/QandA/1746108579a91788.html