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. 😉

CoreDNS Prometheus Alert Rules

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

9.5. Embedded exporter (1 rules)

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

9.5.1. CoreDNS Panic Count

Number of CoreDNS panics encountered

- alert: CoreDNSPanicCount
  expr: increase(coredns_panics_total[1m]) > 0
  for: 0m
  labels:
    severity: critical
  annotations:
    summary: CoreDNS Panic Count (instance {{ $labels.instance }})
    description: "Number of CoreDNS panics encountered\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"