Skip to main content
APA
Sponsored byCAST AI — Kubernetes cost optimizationBetter Stack — Uptime monitoring and log management

CoreDNS logoCoreDNS 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.

⚠️

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

9.5.CoreDNS logoEmbedded 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 }}"