Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

Prometheus Alerting Rules

28. 09. 2021 Updated: 28. 03. 2026 1 min read intermediate
This article was published in 2021. Some information may be outdated.

Cloud Intermediate

Prometheus Alerting Rules

PrometheusAlertingSRE 3 min read

Alert configuration in Prometheus. PrometheusRule, Alertmanager routing and best practices.

Alert pravidla

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: app-alerts
spec:
  groups:
    - name: app.rules
      rules:
        - alert: HighErrorRate
          expr: rate(http_requests_total{status=~"5.."}[5m]) / rate(http_requests_total[5m]) > 0.05
          for: 5m
          labels: {severity: critical}
          annotations:
            summary: "High error rate ({{ $value | humanizePercentage }})"
        - alert: PodCrashLooping
          expr: rate(kube_pod_container_status_restarts_total[15m]) > 0
          for: 5m
          labels: {severity: warning}

Alertmanager routing

route:
  receiver: default
  routes:
    - match: {severity: critical}
      receiver: pagerduty
    - match: {severity: warning}
      receiver: slack
receivers:
  - name: slack
    slack_configs:
      - channel: '#alerts'

Summary

Alert on symptoms (error rate, latency), not causes (CPU). Set proper severity and routing.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.