How would you automate AI investigations for SRE alerts?

December 4, 2026 5 answers
Asked by Zunvexo.2k

I'm looking at an alert flow where an agent investigates, a human reviews the report, and a proposed infrastructure fix goes through a merge request. Application issues should go to the owning team instead. The stack includes GitLab, Kubernetes, ArgoCD, and HolmesGPT.

How would you handle orchestration and measure successful resolutions? I'd also like QA and engineering to plug in their own investigation steps later.

Answers

7r+brackenhinge_294

Keep the orchestration deterministic and let the model do the reasoning within individual steps. Use the issue as the place to record state, with labels such as investigating, awaiting review, fixing, and verifying. A router can read the current state and event, then decide which action is allowed.

Make each run re-read the issue before acting. Webhooks can arrive close together or after a human has changed something, so serialize work per issue and make steps safe to retry. A per-issue GitLab resource group may need some care with webhook pipelines because the issue ID is in the runtime payload.

Zunvexo.2k:

That separation makes sense. The agent can suggest what to do, but the router decides whether the current state permits it.

Reply to this answer
7p+hingewicket_594

Give each investigation a shared output contract rather than making every team use the same agent. The SRE version could produce a report plus scope, allowed repository paths, and verification criteria. QA or engineering can produce that same contract from a test failure or bug report.

Review the report and contract before generating a draft merge request. For an application cause, route the issue to the owning team instead of assuming the platform workflow can fix it. Keep the merge permission with humans.

Reply to this answer
Rilqueno+6v

Define the metric in code, not in the agent's summary. Count a resolution for the responsible team only when a human has confirmed the cause, the fix has merged, verification has passed after deployment, and the 30-day recurrence window has elapsed without the issue returning.

That means a cleared alert is a useful verification signal, not an immediate successful resolution. Record the relevant timestamps and decisions so you can check why an event was counted or excluded.

5c+gimbalwhisk_387:

You'll also need a clear way to associate a recurrence with the original event. Otherwise that 30-day check can be misleading.

Reply to this answer
3n~parcelwhisk_517

I'd start smaller: automate the read-only investigation and produce an issue with a proposed fix, then add draft merge requests once the reports are useful enough to review. Iterating on merge requests is its own workflow and doesn't have to be solved at the same time as alert intake.

Reply to this answer
_t82!drimvexo.6

A hybrid can work too. Let GitLab enforce approvals and permissions, while the agent has some flexibility to choose investigative steps. I'd still put a hard boundary around allowed actions and make sure concurrent events can't start conflicting work on the same issue.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions