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 upincrease function returns null for some data points, resulting in gaps #2659
Comments
This comment has been minimized.
This comment has been minimized.
Is your scrape interval really 1s? The only way I could explain missing values is if |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Ok, if |
This comment has been minimized.
This comment has been minimized.
And with that I mean: open browser's inspector, network tab, refresh graph, look at AJAX response payload. |
This comment has been minimized.
This comment has been minimized.
|
The timestamps that match the gaps are simply missing from the result. I only see valid numbers and 0 values, without explicit NaN/ +Inf / -Inf values. |
This comment has been minimized.
This comment has been minimized.
|
Can you please post the exact expression you're using? |
This comment has been minimized.
This comment has been minimized.
|
These are the 2 queries that are plotted as I already mentioned:
|
This comment has been minimized.
This comment has been minimized.
|
We're going to need the raw data here. Grafana cannot show the raw data, use the console view of the expression browser. Choose one relevant time series. |
This comment has been minimized.
This comment has been minimized.
|
That's not the raw data, as it seems very unlikely to me that your data would be exactly on the second. Please use the expression browser console view to get it. I also note you're using the pushgateway what appears to be a non-batch job, this is not recommended. https://prometheus.io/docs/practices/pushing/ |
This comment has been minimized.
This comment has been minimized.
|
To clarify more, you will need to run an instant (console / table) query instead of a graph query in the expression browser, and then maybe query for one of the buggy series:
This gives you from now to 1h back all the raw samples of that series. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Right, that's a range query. What we'd need to see the truly raw data is an instant query that includes a time range window. Something like: http://demo.robustperception.io:9090/api/v1/query?query=alertmanager_alerts_received_total%7Bstatus%3D%22firing%22%7D%5B4h%5D&time=1493402433.899&_=1493402397084 |
This comment has been minimized.
This comment has been minimized.
|
Thank you for clarifying. Looks like the instant query shows that there are periods that are larger than 60 seconds between timestamps, which as you mentioned would be the cause of the gaps in the delta calculations as well. |
Vlad777
closed this
Apr 28, 2017
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. |


Vlad777 commentedApr 26, 2017
I have complete data for "mymetric" in prometheus for every second, with no nulls. I use increase function on a counter metric over a period of 1m to see the increase for every minute: increase(mymetric[1m]).
I expect a value of the increase from first to last data point of each minute. When there was no increase, I expect to see a 0.
Instead, I often see unexplainable gaps (null values) in the data; even when trying with other functions like delta and rate.
Prometheus version: 1.5.2
BuildDate: 20170210-14:41:22
GoVersion: go1.7.5