James Pei
James Pei

Reputation: 151

Alertmanager repeat_interval and value

I put $value in label section of prometheus expression, alertmanager repeat_interval seems doesn't work when $value changed. For example, I set the threadhold of "CPU usage" as 80%. It will defanitly fire an alert when it reaches 81%, However it will fire another alert when the acutally cpu usage reaches 82%. Any way to make repeat_interval work while value diffs?

Upvotes: 0

Views: 1281

Answers (1)

The Alertmanager creates a new alert when it finds an alerting rule with a different alert name OR different label values.

In your case, you set the following label:

labels:
  value: '{{ $value }}'

So, every time the value changes it creates a new alert.

Upvotes: 1

Related Questions