Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus query API failed to get data #3688
Comments
This comment has been minimized.
This comment has been minimized.
|
After writing some test script, I found the query only works every 30 minutes. How could this happen? |
This comment has been minimized.
This comment has been minimized.
|
2m is the max safe scrape interval. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Jan 16, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
changsijay commentedJan 16, 2018
•
edited
What did you do?
Use grafana to display chart.
What did you expect to see?
display properly on any time range
What did you see instead? Under which circumstances?
Sometimes the chart display correct but most of time it show no data points
Environment
Ubuntu 16.04
System information:
Linux 3.10.0-693.2.2.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.0.0 (branch: HEAD, revision: 0a74f98)
build user: root@615b82cb36b6
build date: 20171108-07:11:59
go version: go1.9.2
Prometheus configuration file:
I use my own python exporter to export for
current_device_countmetrics every 30 minutes.Then I add prometheus datasource with Scrape interval as 30 minutes
I created a dashboard with query
sum(current_device_count)The chart sometimes display properly, but maybe several minutes later, I refresh it, and became no data points.
I debug with the query URL:
which works fine, which range is 30days
some minutes later,
which failed to get data points, which range is 30days, too
If I change the failed case with
step=300I can get628 items, I tried600,1200are failed.I am not sure this is a bug or settings wrong.