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 upabnormal values with irate . #5459
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. 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. |
tuxknight commentedApr 15, 2019
•
edited
What did you do?
In a HA prometheus cluster, two prometheus instances had same remote_read and remote_write. But it breaks when using irate function. It works fine if I stop one prometheus.
What did you expect to see?
irate should return correct value.
What did you see instead? Under which circumstances?
irate expression:
irate({__name__=~"^node_cpu(_seconds_total|)$",job="nodes",mode="idle", instance_ip="xxx",cpu="1"}[1m])value expression:
{__name__=~"^node_cpu(_seconds_total|)$",job="nodes",mode="idle", instance_ip="xxx",cpu="1"}Environment
System information:
Linux 3.10.0-327.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.7.1 (branch: HEAD, revision: 62e591f)
build user: root@f9f82868fc43
build date: 20190131-11:16:59
go version: go1.11.5
alertmanager, version 0.15.2 (branch: HEAD, revision: d19fae3bae451940b8470abb680cfdd59bfa7cfa)
build user: root@3101e5b68a55
build date: 20180814-10:53:39
go version: go1.10.3