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 upadd ability to set max resolution #2253
Comments
gouthamve
referenced this issue
Feb 28, 2017
Closed
Limit number of metrics displayed in prometheus UI #2119
This comment has been minimized.
This comment has been minimized.
|
Can you explain in what cases you need more than 11k points, and why you can't handle it in multiple requests? |
This comment has been minimized.
This comment has been minimized.
olivernadj
commented
Mar 30, 2017
|
Hi Brian, |
brian-brazil
added
priority/Pmaybe
component/ui
kind/enhancement
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
Daemon-Knoppix
commented
Nov 22, 2017
|
Hi Brian, I am new to machine learning and monitoring servers and using Prometheus 2.0.0 on My scraping cycle is 1s that means for getting stats overtime for When i start monitoring datapoints for a month (assuming 31 days) value of datapoints jumps to It would be great if this setting could be introduced for user to decide how much datapoints they need at a time.
|
This comment has been minimized.
This comment has been minimized.
|
You probably want the query endpoint there to get raw data, not query range which is evaluating promql. That sort of massive query is why we have this limit :) |
This comment has been minimized.
This comment has been minimized.
Daemon-Knoppix
commented
Nov 22, 2017
|
Thanks for a quick reply!! True, datapoints for a month will result in a very big data set ... How can i achieve query endpoint for raw data ? Can you share a tutorial or a guide ? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Daemon-Knoppix
commented
Nov 22, 2017
|
Brian, this query provides data for a single instance in time (current or at a single point), not a solution to what i am looking for, i am evaluating data for a month ... Let me explain - Lets say i want to check how many times my server was down over a month (i.e up == 0). Now if i use instant queries it will give me record of a single instance in time that means for a month i will end up fetching data from I have build a code in NodeJS (which at my end is very much optimized) that divides 2 dates ranges into intervals as per maximum limit (which in this case is When i process data for a month i hit api call Now if the query was to status code of my application So i can now see 2 ways to get faster results for getting data for a month -
Considering option 2 : As i have not looked at source code of Prometheus it will be a little tricky for me to perform this in a short time frame. If i can get a guide on how your query engine works / stores datapoints i might end up creating / enhancing my own logic in it or externally. Considering option 1 : If increasing datapoint limit at Prometheus end is not that of a big deal in terms of performance, as it's query engine must be very much optimized by you guys ... I would like to know how can i do that in Ubuntu 16.04 setup of Prometheus or change in source code and build a new setup from current updated source. Please let me know which option would you suggest. Thanks in advance!!! |
This comment has been minimized.
This comment has been minimized.
|
@Daemon-Knoppix Append the time range to the end of the query string. Ex: Also, please ask further queries 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. |
Andor commentedDec 5, 2016
•
edited
Currently, we have hardcoded limit for 11000 data points per query.
I think we should make it configurable. For some cases, we need to limit it to less than 4096, sometimes we need higher resolution more than 11000.
prometheus/web/api/v1/api.go
Line 202 in 30af475