Enrich Custom Prometheus AlertsΒΆ

We now configure a Robusta playbook to enhance a Prometheus alert.

PrerequisitesΒΆ

You must have some Prometheus alerts already defined. Ex: HostHighCpuLoad

Enriching a Custom AlertΒΆ

Define a customPlaybook that responds to our Prometheus alert:

customPlaybooks:
- triggers:
  - on_prometheus_alert:
      alert_name: HostHighCpuLoad
  actions:
  - node_bash_enricher:
      bash_command: ps aux

Warning

Defining a customPlaybook for a specific alert, wont stop other playbooks from seeing that alert too.

Playbooks run in the order they appear in customPlaybooks.

To stop processing after some action, set the stop parameter:

customPlaybooks:
- triggers:
  - on_prometheus_alert:
      alert_name: HostHighCpuLoad
  actions:
  - node_cpu_enricher: {}
  stop: True
- triggers:
  - on_prometheus_alert: {}
  actions:
  - some_other_action: {}

Using this configuration, some_other_action wont run for HostHighCpuLoad.

Further ReadingΒΆ