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 upThe value of $value will not change when recovery occurs. #3986
Comments
This comment has been minimized.
This comment has been minimized.
|
Resolved alerts don't have a value, because that doesn't make sense. It makes more sense to ask questions 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. |
brian-brazil
closed this
Mar 20, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
zhou-mfk commentedMar 20, 2018
Hi
I have a confusion about the variable {{$value}} in the promethues alert rule.
When a monitoring item is restored, I always get the correct value. The value of the {{$value}} variable represents the alarm at firing time.
Environment
System information:
Linux 3.10.0-514.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.2.1 (branch: HEAD, revision:
bc6058c)
build user: root@149e5b3f0829
build date: 20180314-14:15:45
go version: go1.10
Alertmanager version:
alertmanager, version 0.11.0 (branch: HEAD, revision: 30dd0426c08b6479d9a26259ea5efd63bc1ee273)
build user: root@3e103e3fc918
build date: 20171116-17:43:56
go version: go1.9.2
Prometheus configuration file:
The warning message I received is as follows.

At this point, {{$value}} is normal.
However, when recovery, the value of {{$value}} is not updated,

The recovery email is as follows
Can you tell me how to get the correct value in the alarm?
Thanks!