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 upGraph is flickering #4079
Comments
This comment has been minimized.
This comment has been minimized.
|
This is expected, when you refresh you request data at slightly different times so the result of the math changes. You should also not be using delta with a counter, you want increase instead. |
brian-brazil
closed this
Apr 11, 2018
This comment has been minimized.
This comment has been minimized.
|
Care to explain why this is expected? If the data point was collected at a timestamp And why you assumed I'm using a counter? It's a gauge (that particular number also decreases). |
This comment has been minimized.
This comment has been minimized.
|
You didn't request the raw data, you requested query evaluation so it's evaluating queries at each step at returning (roughly) the point before that time. The two queries you are using have different values for t. process_cpu_seconds_total is a counter. |
This comment has been minimized.
This comment has been minimized.
|
Hmm... I get it. Probably the I'm misusing the But, should I expect to see it also when I request only the metric itself? |
This comment has been minimized.
This comment has been minimized.
|
The graph tab offers only promql execution, so that's an instant vector selector being evaluated. If you wanted raw data you'd need to query metricname[5m] on the console tab. |
This comment has been minimized.
This comment has been minimized.
|
Indeed. Wasn't aware of the differences in between selecting via the dropdown and by typing it in the console tab. I probably missed that in the documentation. But still, even though if this is normal/ intended behaviour, would it be possible to make the graph tool reflect exactly the output of the console? I'm just asking because it's weird to see the graph flickering, specially when someone (like me) doesn't know that this can happen. |
This comment has been minimized.
This comment has been minimized.
|
The graph and the console do have the exact same output for a given timestamp, it's all the same code. The graph tab does not support raw data though. |
This comment has been minimized.
This comment has been minimized.
Yes, I would expect that. Makes total sense and sounds logical.
I'm aware that plotting data in graphs might involve issues like this. My point is, does it makes sense to make it support the raw output at some point in the future? It is just a suggestion, and, since there are tools like Grafana, it might not make sense at all to make it support the raw data. |
This comment has been minimized.
This comment has been minimized.
|
The raw data is only used generally when doing deep debugging, even Grafana doesn't support graphing it. |
This comment has been minimized.
This comment has been minimized.
|
Then my suggestion doesn't make sense. |
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. |
ricardoatsouza commentedApr 11, 2018
What did you do?
I'm using Prometheus to gather metrics from a few node js services (Node JS library being used: https://github.com/siimon/prom-client). The data is being collected, so far so good.
This metric in particular is an integer (0, 1, 2, 3, ...), and this is how I see it in Prometheus graph.
But, when I update the graph (same metric, of course), it changes to:
This is a very simple graph, showing four lines of integer number (one line per service) and, every time there is an update in the graph, those values keep rounding -1 down.
This behaviour seems to be happening with floating number as well, as I see this in CPU and memory graphs too. Here is the CPU usage (
delta(process_cpu_seconds_total{service_name="myservice"}[5m])) of one of the services:And, same graph, just refreshed:
I would guess that Prometheus is trying to round the data, but I cannot tell for sure.
Thanks
What did you expect to see?
The graphs to be concise.
What did you see instead? Under which circumstances?
Graphs are flickering.
Environment
Output of
uname -srm: Darwin 17.4.0 x86_64