Skip to content

Commit

Permalink
Fix alert for Agent Management in mixin (#5565)
Browse files Browse the repository at this point in the history
The `AgentRemoteConfigBadAPIRequests` was using the wrong operator to evaluate the pattern.
  • Loading branch information
jcreixell authored Oct 23, 2023
1 parent df302eb commit 364b310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/grafana-agent-mixin/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ local _config = config._config;
{
alert: 'AgentRemoteConfigBadAPIRequests',
expr: |||
100 * sum(rate(agent_remote_config_fetches_total{status_code="(4|5).."}[10m])) by (%(group_by_cluster)s)
100 * sum(rate(agent_remote_config_fetches_total{status_code=~"(4|5).."}[10m])) by (%(group_by_cluster)s)
/
sum(rate(agent_remote_config_fetches_total[10m])) by (%(group_by_cluster)s)
> 5
Expand All @@ -260,7 +260,7 @@ local _config = config._config;
{
alert: 'AgentRemoteConfigBadAPIRequests',
expr: |||
100 * sum(rate(agent_remote_config_fetches_total{status_code="(4|5).."}[10m])) by (%(group_by_cluster)s)
100 * sum(rate(agent_remote_config_fetches_total{status_code=~"(4|5).."}[10m])) by (%(group_by_cluster)s)
/
sum(rate(agent_remote_config_fetches_total[10m])) by (%(group_by_cluster)s)
> 10
Expand Down

0 comments on commit 364b310

Please sign in to comment.