authoring-loki-alerting-and-recording-rules
Designs, validates, backtests, and deploys Grafana Loki Ruler alerting rules, recording rules, and Kubernetes Loki Operator AlertingRule/RecordingRule CRDs with dry-run and confirmation guardrails. Use when creating or deleting Loki Ruler rule groups, authoring AlertingRule or RecordingRule CRDs, pre-aggregating expensive LogQL queries into Prometheus metrics, tuning noisy/high-series log alerts, or running /setup-monitoring for log alerts. Do not use for Prometheus TSDB PrometheusRule CRDs (use authoring-and-testing-prometheus-rules), ad-hoc LogQL queries (use authoring-logql-and-analyzing-logs), LokiStack cluster provisioning (use operating-loki-deployments-and-ingestion), or Alertmanager routing simulation (use validating-alertmanager-routing).
- Version
- 0.2.0
- License
- Apache-2.0
Pinned to revision e93452925e25, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/authoring-loki-alerting-and-recording-rules/SKILL.md
- skills/authoring-loki-alerting-and-recording-rules/references/log-alerting-patterns.md
- skills/authoring-loki-alerting-and-recording-rules/references/loki-ruler-and-crd-spec.md
- skills/authoring-loki-alerting-and-recording-rules/scripts/validate_loki_rules.py
Every link opens the file at its source, pinned to the revision this page describes.