Auto-remediation
Operations → Auto-Remediation (/gravity/operations/auto-remediation) lets you turn a
recognizable incident into an automatic response, instead of triaging the same alert by hand
every time it recurs. Creating and editing rules requires the Admin or Owner role.
Binding a pattern to a runbook
Section titled “Binding a pattern to a runbook”A rule has:
- Name
- Incident pattern - a regular expression or plain keyword, matched (case-insensitively) against a new incident’s title and dedup key
- Runbook - which runbook to trigger on a match
- Confidence threshold - how closely the pattern has to match before the rule fires (an exact match scores higher than a loose keyword match)
- Cooldown (minutes) - the minimum time between two triggers of the same rule, independent of the runbook’s own cooldown
- Auto-approve or manual review - see Safety rails below
- Enabled
Use Test Pattern in the rule form to check a candidate pattern against a sample incident title before saving - it scores the match the same way the live evaluation does, entirely in your browser, without creating anything.
When rules run
Section titled “When rules run”Every enabled rule for your organization is evaluated automatically each time a new incident is created - this always runs, with no separate switch to turn it on. If an incident matches a rule at or above its confidence threshold and the rule isn’t in cooldown, the rule fires.
Safety rails
Section titled “Safety rails”- Cooldown prevents a rule from firing again for the same condition within its configured window, even if the pattern keeps matching.
- Auto-approve off (the default) - a match creates a change request for human review instead of running the runbook immediately. You’ll find it in Change requests, pre-filled with which rule and incident triggered it.
- Auto-approve on - the runbook is triggered immediately when the rule matches, with no human step in between. Turning this on is a real decision: it means an automated pattern match can execute an action against a live host unattended. Whether a triggered runbook actually reaches a host still depends on fleet dispatch being enabled for your environment - where it isn’t, the run is recorded as failed rather than reaching the agent; see the caution in Runbooks. Start with manual review until you’re confident the pattern is accurate, and only switch to auto-approve once you trust it.
Enabling and disabling
Section titled “Enabling and disabling”Each rule has an Enabled toggle in the rules table - turning it off stops the rule from being evaluated without deleting its configuration, useful while you’re still tuning a pattern.
Reviewing what fired
Section titled “Reviewing what fired”The Recent Triggers list at the bottom of the page shows the last 10 times a rule matched an incident for your organization, so you can confirm a rule is behaving as expected (or catch one that’s firing more than you intended).
A related screen: Auto-Triggers
Section titled “A related screen: Auto-Triggers”Operations → Auto-Triggers (/gravity/operations/auto-triggers) is a second screen over the
same underlying rules, adding a minimum severity threshold (info/warning/error/critical) and
a fire-count/last-fired history per rule, plus its own pattern-testing tool against your
organization’s most recent incidents.
What’s next
Section titled “What’s next”- Runbooks - what actually runs when a rule fires
- Incidents - the source of the patterns you’re matching against
- Change requests - where manually-reviewed matches land
- Audit log - every rule match and trigger is recorded there