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 upRate function is calculating bad values #4404
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for your report. It looks as if this is actually a question about usage and not development because the To make your question, and all replies, easier to find, we suggest you move this over to our user mailing list, which you can also search. If you prefer more interactive help, join or our IRC channel, #prometheus on irc.freenode.net. Please be aware that our IRC channel has no logs, is not searchable, and that people might not answer quickly if they are busy or asleep. If in doubt, you should choose the mailing list. Once your questions have been answered, please add a short line pointing to relevant replies in case anyone stumbles here via a search engine in the future. |
This comment has been minimized.
This comment has been minimized.
|
I don't see any evidence of a bug here, this all looks normal from some quick maths. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@sgrzemski this is a rate over 5 minutes, meaning 45 bytes/second. |
This comment has been minimized.
This comment has been minimized.
|
Hello all, I would like to thank you very much for your help! |
sgrzemski
closed this
Jul 31, 2018
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. |

sgrzemski commentedJul 23, 2018
Bug Report
What did you do?
I am graphing a query like
rate(node_network_receive_bytes_total{device="eth0"}[5m])in Grafana. However, the rate function seems not to work properly, as the calculated results are incorrect. I am having two group of machines in two subnets, same version on node_exportes on both. All servers are in one job in Prometheus. I will paste the example below.Node exporters are providing proper values, when you query for
node_network_receive_bytes_total{device="eth0"}[5m]the values are just fine, but the average of them is calculated improperly. Our Prometheus is dockerized.What did you expect to see?
Correct average values for time, as specified in the query.
What did you see instead? Under which circumstances?
Here is an example, please see the metrics from node_exporters:
What is more, the values for a query without


rateare also OK:However same query with rate function returns incorrect values:

Environment
Linux 4.10.0-35-lowlatency x86_64