Alert Enrichment¶
Ever feel overwhelmed by alerts that lack context? Robusta enriches alerts automatically and lets you create custom enrichment rules.
Note
Looking for automatic AI enrichment? Check out HolmesGPT for zero-configuration AI-powered alert enrichment that automatically investigates alerts and provides root cause analysis.
Builtin Alert Enrichment¶
Robusta automatically enriches Prometheus alerts with relevant Kubernetes context:
Pod events - Recent events related to the affected pod
Pod logs - Relevant log excerpts from crashing or failing containers
Resource metrics - CPU, memory, and other resource usage data
Related Kubernetes objects - Deployments, ReplicaSets, ConfigMaps, etc.
This happens automatically for common Prometheus alerts without any configuration. To extend it to your own Prometheus alerts you can define custom playbooks.
Testing Alert Enrichment¶
Deploy a broken pod:
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_resources.yaml
Trigger a Prometheus alert immediately:
robusta playbooks trigger prometheus_alert alert_name=KubePodCrashLooping namespace=default pod_name=example-pod
Custom Alert Enrichment¶
Create custom enrichment rules to:
Reduce MTTR by automatically gathering system state and logs when alerts fire
Make faster decisions on which team needs to investigate
Link alerts to runbooks and documentation for better knowledge sharing
Get started with these examples: