Gardience Documentation gardience.com →
Docs / Using Gardience

Rulebook activations

A rulebook activation lets the tools you already run start the fix. When your alerting tool sends an event, Gardience checks it against your conditions, finds the machine it names, and starts a runbook on that machine or a workflow. Find it under Automation > Rulebook activations (admins only).

Make one

#
  1. Choose New activation.
  2. Give it a name and choose where events come from: Prometheus Alertmanager, Grafana alerting, Splunk alert, ServiceNow, Datadog, or any webhook that sends JSON.
  3. Machine is in the field: the field of the event that holds the machine's name. Gardience fills in the usual one for each source (for Alertmanager and Grafana, labels.instance).
  4. Add conditions, for example labels.alertname equals DiskFull. Each condition compares one field: equals, does not equal, contains, starts with, or is present. Choose whether all of them or any of them must be true. With no conditions, every event counts.
  5. Choose what to run: a runbook or a workflow.
  6. Set Wait between runs on the same machine (default 30 minutes).
  7. Leave A second person approves each run first on unless you want it to run by itself. Workflows always wait for approval.
  8. Save. Gardience shows the address and a token once. Copy both into your alerting tool.

Point your alerting tool at it

#

Send events with an HTTP POST to the address, with the token in an Authorization: Bearer header. For Prometheus Alertmanager, Gardience shows a ready receiver:

receivers:
  - name: gardience
    webhook_configs:
      - url: https://YOUR-GARDIENCE/gardience/api/hooks/ACTIVATION-ID
        send_resolved: false
        http_config:
          authorization:
            credentials: TOKEN

A tool that cannot set a header can send the token as ?token= on the address instead; a header is better, because addresses are often written to logs.

What Gardience does with an event

#

Test it

#

Test on an activation takes a sample event (JSON) and shows what it would do, without running anything.

Keep it safe

#
#
Gardience by Bouziden Management LLC.