---
name: investigate-production-incidents-and-diagnose-root-causes
description: "Investigates production incidents by correlating telemetry, terminal diagnostics, and recent GitHub deployments to isolate probable root causes. Use when production alerts fire or unexpected errors surge and an operator needs a diagnosis and remediation draft."
license: CC-BY-4.0
compatibility: "Needs access to: Datadog, Terminal, GitHub, Slack."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/investigate-production-incidents-and-diagnose-root-causes/"
  kind: workflow
  hermes:
    tags: ["sre", "incident response", "observability", "kubernetes", "troubleshooting"]
    category: ops
    requires_toolsets: ["terminal", "connections"]
---
# Investigate production incidents and diagnose root causes

Correlate telemetry, logs, and infrastructure state to troubleshoot active alerts

## When to use

When production alerts fire or unexpected errors surge, triage demands rapid correlation across logs, system metrics, and deployment history. This bot inspects telemetry data, runs diagnostic queries against cluster resources, isolates probable root causes, and prepares an incident report alongside proposed remediations.

## Inputs

- `alert_payload`: Incoming production alert notification including affected hosts, pods, or services.

## Steps

1. When something happens: Alert notification received (An incoming production alert notification or surge of unexpected errors.)
2. Query metrics and inspect pods
3. Draft report and fix for approval

## Instructions

Analyze incoming production alert payloads and identify affected hosts, pods, or services. Use terminal diagnostics and datadog to pull relevant error traces, event logs, and utilization graphs. Cross-reference recent github deployments to locate changes introduced near the incident start time. Formulate an incident diagnosis detailing the primary failure mechanism and recommended configuration change or rollback. Draft your findings and any proposed code fixes or Slack notifications, but always wait for operator approval before posting messages or opening pull requests.

## Approvals

- Posting Slack messages or notifications
- Opening pull requests with proposed code fixes

## Output

Incident diagnosis report covering primary failure mechanism, affected services, and proposed configuration change or rollback. (format: markdown)

## Source

Summarized in our own words from [holmesgpt: SRE Agent - CNCF Sandbox Project](https://github.com/HolmesGPT/holmesgpt) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/investigate-production-incidents-and-diagnose-root-causes/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
