Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document common "I see no data" question #660

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,19 @@ For certain metrics which update relatively rarely, such as from S3,
a timestamp. This is as the true timestamp from CloudWatch could be so old that
Prometheus would reject the sample.

#### FAQ: I can see the metrics in `/metrics` but not in the Prometheus web console

The metrics will be visible in Prometheus if you look more than `delay_seconds` in the past.
Try the graph view.

This is an unfortunate result of a fundamental mismatch between CloudWatch and Prometheus.
CloudWatch metrics converge over time, that is, the value at time `T` can change up to some later time `T+dT`.
Meanwhile, Prometheus assumes that once it has scraped a sample, that is the truth, and the past does not change.

To compensate for this, by default the exporter [delays fetching metrics](https://github.com/prometheus/cloudwatch_exporter/blob/master/README.md#timestamps), that is, it only asks for data 10 minutes later, when _almost_ all AWS services have converged.
It also reports to Prometheus that this sample is from the past.
Because Prometheus, for an instant request, only looks back 5 minutes, it never sees any data "now".

### Special handling for certain DynamoDB metrics

The DynamoDB metrics listed below break the usual CloudWatch data model.
Expand Down