Search code examples
grafanaamazon-cloudwatchmetricsgrafana-api

why grafana display the value at incorrect time slot?


I used grafana to display data from cloudwatch. I found grafana shows value incorrectly, for example, from this graph, the test_value is 1.000 at time 2021-02-28 07:29:00, enter image description here

however, from this graph, u can see the test_value is still 1.000 at time 2021-02-28 10:29:00, while the bar graph shows there should be no test_value at this time slot; enter image description here

it is very confused to see this? maybe the grafana setting is wrong? any suggestion?


Solution

  • You have sparse metric, so Grafana is showing the closest previous value. I would switch Hower tooltip Mode to Single instead of All series to avoid confusion.

    You can also use CloudWatch Metric Math with FILL() function to fill the missing values of a metric with the specified filler value when the metric values are sparse.