Actions ReferenceΒΆ

Robusta can take many automated actions, in response to events in your cluster.

Built-in ActionsΒΆ

Message Formatting
Event Enrichment
Remediation
Change Tracking
Grafana
Python App Troubleshooting
Java App Troubleshooting
Scans
Miscellaneous

Custom ActionsΒΆ

Need to do something that the builtin actions don't cover? Write your own Robusta action in Python.

View example action (Python)
# this runs on Prometheus alerts you specify in the YAML
@action
def my_enricher(event: PrometheusKubernetesAlert):
    # we have full access to the pod on which the alert fired
    pod = event.get_pod()
    pod_name = pod.metadata.name
    pod_logs = pod.get_logs()
    pod_processes = pod.exec("ps aux")

    # this is how you send data to slack or other destinations
    event.add_enrichment([
        MarkdownBlock("*Oh no!* An alert occurred on " + pod_name),
        FileBlock("crashing-pod.log", pod_logs)
    ])