prometheus/cloudwatch_exporter

Regarding cloudwatch_exporter collection values, data query issues after connecting to Prometheus

bruce202303 opened this issue · 1 comments

Context information

  • AWS service:
  • CloudWatch namespace:
  • Link to metrics documentation for this service:
  • AWS region of the exporter:
  • AWS region of the service:
    no-data
    1.Why can’t I query the data in the table after connecting the data to Prometheus?

image
2.However, there is data when querying under Graph, and there is a problem about time zone; I specified the area as ap-southeast-1 in the configuration file, but the default time zone of the data is still UTC.

Exporter configuration
Exporter logs

What do you expect to happen?

What happened instead?

There are two separate things going on here:

  • Prometheus keeps and (in its UI) shows all data in UTC. You can change the timezone in your dashboards for display purposes.
  • CloudWatch data is often late, therefore the exporter by default only gets values from 10 minutes ago. An instant query "now" only looks back 5 minutes, that's why you don't see anything in the Table tab. Note how the lines in the graph view go flat 10 minutes ago (this is when real data ends) and extend by another 5 minutes (the lookback delta period).

Both are expected behavior.