forked from grafana/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve visibility of slow component evaluations & failed components …
…in general (grafana#5843) * Improve visibility of slow component evaluations * rename metric * Add alerts and dash * fix-name * fix queries to > 0 * changelog * goimport
- Loading branch information
Showing
7 changed files
with
87 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local alert = import './utils/alert.jsonnet'; | ||
|
||
alert.newGroup( | ||
'agent_controller', | ||
[ | ||
// Component evaluations are taking too long, which can lead to e.g. stale targets. | ||
alert.newRule( | ||
'SlowComponentEvaluations', | ||
'sum by (cluster, namespace, component_id) (rate(agent_component_evaluation_slow_seconds[10m])) > 0', | ||
'Flow component evaluations are taking too long.', | ||
'15m', | ||
), | ||
|
||
// Unhealthy components detected. | ||
alert.newRule( | ||
'UnhealthyComponents', | ||
'sum(agent_component_controller_running_components{health_type!="healthy"}) > 0', | ||
'Unhealthy Flow components detected.', | ||
'15m', | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,3 +125,4 @@ local g = import 'grafana-builder/grafana.libsonnet'; | |
), | ||
}, | ||
} | ||
|