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.
Add OpenTelemetry alerts (grafana#6381)
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
operations/agent-flow-mixin/alerts/opentelemetry.libsonnet
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,25 @@ | ||
local alert = import './utils/alert.jsonnet'; | ||
|
||
alert.newGroup( | ||
'otelcol', | ||
[ | ||
// An otelcol.exporter component rcould not push some spans to the pipeline. | ||
// This could be due to reaching a limit such as the ones | ||
// imposed by otelcol.processor.memory_limiter. | ||
alert.newRule( | ||
'OtelcolReceiverRefusedSpans', | ||
'sum(rate(receiver_refused_spans_ratio_total{}[1m])) > 0', | ||
'The receiver could not push some spans to the pipeline.', | ||
'5m', | ||
), | ||
|
||
// The exporter failed to send spans to their destination. | ||
// There could be an issue with the payload or with the destination endpoint. | ||
alert.newRule( | ||
'OtelcolExporterFailedSpans', | ||
'sum(rate(exporter_send_failed_spans_ratio_total{}[1m])) > 0', | ||
'The exporter failed to send spans to their destination.', | ||
'5m', | ||
), | ||
] | ||
) |