Skip to content

Add beyla mixin #1420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions beyla-mixin/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../Makefile_mixin
3 changes: 3 additions & 0 deletions beyla-mixin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Beyla monitoring mixins

This mixin includes Grafana Dashboards and Alerts for Beyla.
102 changes: 102 additions & 0 deletions beyla-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
prometheusAlerts+: {
groups+: [
{
name: 'beyla_internal_alerts',
rules: [
{
alert: 'BeylaOTELMetricExportHighErrorRate',
expr: |||
100 * sum(rate(beyla_otel_metric_export_errors_total[1m])) by (cluster)
/
sum(rate(beyla_otel_metric_exports_total[1m])) by (cluster)
> 2
|||,
'for': '15m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Beyla has a high error rate for OTEL metric exports.',
description: 'Beyla in { $labels.cluster }} is experiencing {{ printf "%.2f" $value }}% errors for OTEL metric exports.',
runbook_url: 'https://github.com/grafana/beyla/tree/main/ops/runbook.md#BeylaOTELMetricExportHighErrorRate',
},
},
{
alert: 'BeylaOTELMetricExportHighErrorRate',
expr: |||
100 * sum(rate(beyla_otel_metric_export_errors_total[1m])) by (cluster)
/
sum(rate(beyla_otel_metric_exports_total[1m])) by (cluster)
> 5
|||,
'for': '15m',
labels: {
severity: 'critical',
},
annotations: {
summary: 'Beyla has a high error rate for OTEL metric exports.',
description: 'Beyla in { $labels.cluster }} is experiencing {{ printf "%.2f" $value }}% errors for OTEL metric exports.',
runbook_url: 'https://github.com/grafana/beyla/tree/main/ops/runbook.md#BeylaOTELMetricExportHighErrorRate',
},
},
{
alert: 'BeylaOTELTraceExportHighErrorRate',
expr: |||
100 * sum(rate(beyla_otel_trace_export_errors_total[1m])) by (cluster)
/
sum(rate(beyla_otel_trace_exports_total[1m])) by (cluster)
> 2
|||,
'for': '15m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Beyla has a high error rate for OTEL trace exports.',
description: 'Beyla in { $labels.cluster }} is experiencing {{ printf "%.2f" $value }}% errors for OTEL trace exports.',
runbook_url: 'https://github.com/grafana/beyla/tree/main/ops/runbook.md#BeylaOTELTraceExportHighErrorRate',
},
},
{
alert: 'BeylaOTELTraceExportHighErrorRate',
expr: |||
100 * sum(rate(beyla_otel_trace_export_errors_total[1m])) by (cluster)
/
sum(rate(beyla_otel_trace_exports_total[1m])) by (cluster)
> 5
|||,
'for': '15m',
labels: {
severity: 'critical',
},
annotations: {
summary: 'Beyla has a high error rate for OTEL trace exports.',
description: 'Beyla in { $labels.cluster }} is experiencing {{ printf "%.2f" $value }}% errors for OTEL trace exports.',
runbook_url: 'https://github.com/grafana/beyla/tree/main/ops/runbook.md#BeylaOTELTraceExportHighErrorRate',
},
},
{
alert: 'BeylaInstrumentedProcessesNoTelemetry',
expr: |||
sum by(cluster) (beyla_instrumented_processes{process_name!="beyla"}) > 1 and
(absent(sum by(cluster) (rate(beyla_otel_metric_exports_total[5m]))) or
absent(sum by(cluster) (rate(beyla_otel_trace_exports_total[5m]))) or
absent(sum by(cluster) (rate(beyla_ebpf_tracer_flushes_sum[5m]))) or
absent(sum by(cluster) (rate(beyla_prometheus_http_requests_total[5m]))))
|||,
'for': '10m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Beyla has instrumented processes without metrics or traces.',
description: 'Beyla in {{ $labels.cluster }} has more than 1 instrumented processes, but no metrics or traces have been exported in the last 10 minutes.',
runbook_url: 'https://github.com/grafana/beyla/tree/main/ops/runbook.md#BeylaInstrumentedProcessesNoTelemetry',
},
},
],
},
],
},
}
Loading
Loading