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 up"No datapoints found." using rate on node_cpu #1428
Comments
This comment has been minimized.
This comment has been minimized.
|
Eyeballing that data, you have a scrape interval of 1m so |
brian-brazil
added
the
question
label
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
I think I'm coming to understand the problem. I thought I had a 1s scrape interval, but my scrape interval was only applying to the first scrape config and not the later ones. How is the default scrape interval determined? I thought it was 10s, judging from the docs? |
This comment has been minimized.
This comment has been minimized.
|
Sorry. PEBKAC. I was reading the default scrape timeout, not the scrape interval. All solved! The only slightly unfortunate thing was just how mysterious it was when I got no data back. |
pwaller
closed this
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Glad you're sorted out. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the exceptional response time |
This comment has been minimized.
This comment has been minimized.
davidlwillson
commented
Mar 27, 2018
|
I'll suggest that it would be cool if Prometheus could detect the problem and say something like: You're trying for every 30s, but your samples seem to be every 60s. Decrease the granularity of your report, or increase the granularity of your samples. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
pwaller commentedFeb 26, 2016
I'm pretty convinced everything is working, except that I can't get the
rate()function to work. Here I pick a specificnode_cpuand try and try and compute the rate:And the rate:
Am I doing something obviously wrong? I found #1022 but checking the clocks from the host running prometheus, the prometheus container and my browser and they all agree to within a second.
rate(node_cpu[1m])also returns no data, whereasnode_cpuby itself returns lots of data.