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

Improperly filling in null values #5150

Closed
rrusso1982 opened this Issue Jan 29, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@rrusso1982
Copy link

rrusso1982 commented Jan 29, 2019

Proposal

When we are querying for a range of data with grafana in which the query time range would end after the last datapoint in prometheus instead of returning null datapoints we instead get a duplicate fo teh last datapoint repeatedly.

Bug Report

We are ingesting metrics from AWS cloudwatch and that data has a delayed availablility in the AWS cloudwatch API. Because of that our exporter emits the timestamp of the cloudwatch datapoint with the export. On average this means we have datapoints that are 5 minutes old as the last point in prometheus. When queried for a range of from 15 minutes ago til now we get all the data points up to the last ingested point and then a repeat of that last point up until now.

What did you expect to see?
I would expect that we should get null data points

What did you see instead? Under which circumstances?
We get duplicate data points of the last available point

Environment
Cloudwatch -> Prometheus -> Grafana

  • Prometheus version:

2.3.2

@codesome

This comment has been minimized.

Copy link
Member

codesome commented Jan 30, 2019

I think this is by design. What you are looking for might be the --query.lookback-delta flag, which defaults to 5m. So when you query, the latest sample within the last 5m is returned. If there is no sample within that range, the series would be marked stale.

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jan 30, 2019

What @codesome says. This is documented here.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.