788+ production-ready Prometheus alerting rules for 80+ services — just copy-paste YAML
Ready-to-use Prometheus alert rules for various components. All .yml files are valid rules to include via rule_files.
- Grafana
- Alertmanager
- Blackbox Exporter
- OpenTelemetry Collector
- Tempo
- Mimir
- VictoriaMetrics
- Thanos
- Cortex
- Jaeger
- Grafana Alloy
- MySQL
- PostgreSQL
- Patroni
- PGBouncer
- Redis
- Valkey
- DragonflyDB
- MongoDB
- Cassandra
- ClickHouse
- MSSQL
- Memcached
- InfluxDB
- OpenSearch
- Solr
- Meilisearch
- CouchDB
- Oracle
- Kubernetes
- K3s
- Nomad
- Consul
- Etcd
- Linkerd
- Istio
- ArgoCD
- Harbor
- Temporal
- Temporal Cloud
- FluxCD
- OpenStack
- OpenEBS
Add the rules you need to rule_files in the Prometheus config:
rule_files:
- databases/mysql.yml
- proxy/haproxy.ymlRules are frozen into versioned releases. Each release is tagged vX.Y.Z and described in CHANGELOG.md. Pin rules to a tag for reproducibility:
https://raw.githubusercontent.com/philyuchkoff/prometheus-alerts/<tag>/databases/mysql.yml
Create a new release manually via GitHub Releases or via git tag vX.Y.Z && git push --tags.
Every PR and push to master runs promtool check rules against all rule files and promtool test rules for unit tests (see .github/workflows/validate.yml).
Expressions are covered by unit tests (promtool test rules format) in the tests/ directory:
promtool test rules tests/prometheus-test.yml
promtool test rules tests/mysql-test.yml
promtool test rules tests/podman-test.yml
To keep CI green for a new rules file, add a matching tests/<name>-test.yml.
Part of the rules are adapted from samber/awesome-prometheus-alerts (CC BY 4.0):
- cert-manager
- Cilium
- WireGuard
- Hashicorp Vault
- Cloudflare
- SNMP
- Juniper
- SpeedTest
- NATS
- OpenSearch
- Solr
- Meilisearch
- CouchDB
- Oracle
- Apache
- Caddy
- Envoy
- Apache Flink
- Apache Spark
- Apache Hadoop
- Cortex
- Jaeger
- Grafana Alloy
- FluxCD
- OpenStack
- OpenEBS
- Nomad exporter
- GitLab CI
- Mimir
- Thanos
- HAProxy
- Cassandra
- ClickHouse
- IPMI
Each of these files also carries an attribution header pointing to the original source.
Licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).