Open wei-lee opened 3 years ago
I think you might have misconfigured the latencyBudget
, as the value in the alerting rule is already templated.
Then maybe the problem is in the code generating the rules in https://promtools.dev/alerts/latency, as it is what @wei-lee used to generate the alerts. @metalmatze should know better 😄
Yes, that's probably a problem with promtools.dev itself. If you want to take a look to find the problem here: https://github.com/metalmatze/promtools.dev/blob/master/main.go Otherwise I can see to fix it with another update I have already been working on anyway :)
The problem looks indeed related with promtools.dev and the latencyBudget
, as pointed out by @brancz . There's a fix proposal in https://github.com/metalmatze/promtools.dev/pull/13
This can be safely closed.
Issue is still present on https://promtools.dev/alerts/latency
At the moment, the generated alert rules for latency is something like this:
The corresponding recording rule for this alert is something like this:
which means the value of this recording rule will never be bigger than 1. That means the alert will never be fired.
If my understanding is correct, we should either multiply the recording rule by 100, or change
1
to0.01
in the alerts.