Skip to main content
APA
Sponsored by CAST AI — Kubernetes cost optimization Better Stack — Uptime monitoring and log management
⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

Grafana Alloy Prometheus Alert Rules

1 Prometheus alerting rule for Grafana Alloy. Exported via Embedded exporter. These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

12.7. Embedded exporter (1 rules)

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/grafana-alloy/embedded-exporter.yml
critical

12.7.1. Grafana Alloy service down

Alloy on instance {{ $labels.instance }} is not responding or has stopped running.

- alert: GrafanaAlloyServiceDown
  expr: count by (instance) (alloy_build_info offset 2h) unless count by (instance) (alloy_build_info)
  for: 0m
  labels:
    severity: critical
  annotations:
    summary: Grafana Alloy service down (instance {{ $labels.instance }})
    description: "Alloy on instance {{ $labels.instance }} is not responding or has stopped running.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"