Scripts2026年9月12日·1 分钟阅读

HolmesGPT — AI-Powered Root Cause Analysis for Kubernetes

An open-source SRE agent (CNCF Sandbox) that uses LLMs to investigate Kubernetes alerts, correlate signals, and suggest root causes automatically.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
HolmesGPT
直接安装命令
npx -y tokrepo@latest install 70f42a52-ae8b-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

HolmesGPT is a CNCF Sandbox project that brings AI-powered root cause analysis to Kubernetes operations. When an alert fires, HolmesGPT automatically investigates by gathering logs, events, and metrics, then uses an LLM to correlate signals and produce a human-readable diagnosis.

What HolmesGPT Does

  • Receives alerts from Prometheus Alertmanager, PagerDuty, or manual queries
  • Automatically gathers relevant Kubernetes logs, events, and resource states
  • Uses LLMs (OpenAI, Azure OpenAI, or local models) to analyze gathered evidence
  • Produces structured root cause reports with remediation suggestions
  • Integrates with Slack, Jira, and other tools for alert enrichment

Architecture Overview

HolmesGPT runs as a Python service that connects to your Kubernetes cluster and monitoring stack. When triggered by an alert, it acts as an AI agent that autonomously runs kubectl commands, queries Prometheus, and reads logs to gather evidence. This evidence is fed to an LLM with a specialized prompt for SRE analysis, producing a diagnosis. The tool uses a runbook system to encode domain-specific investigation patterns.

Self-Hosting & Configuration

  • Install via pip or deploy as a Kubernetes deployment/CronJob
  • Configure LLM provider via environment variables (OpenAI API key or local model endpoint)
  • Connect to Alertmanager for automated alert investigation
  • Add custom runbooks to guide investigation for your specific services
  • Set up Slack or Jira integrations for posting investigation results

Key Features

  • CNCF Sandbox project with active community governance
  • Autonomous investigation gathers evidence without manual intervention
  • Custom runbook system encodes team-specific debugging knowledge
  • Multi-LLM support including OpenAI, Azure, and self-hosted models
  • ChatOps integration posts findings directly to Slack channels

Comparison with Similar Tools

  • K8sGPT — identifies cluster issues; HolmesGPT investigates alert-triggered incidents with deeper analysis
  • Robusta — Kubernetes monitoring platform; HolmesGPT is a focused RCA agent
  • kubectl-ai — AI-assisted kubectl; HolmesGPT automates full investigation workflows
  • Coroot — observability with RCA; HolmesGPT is LLM-native and runbook-driven
  • Shoreline — commercial incident automation; HolmesGPT is open-source and LLM-powered

FAQ

Q: Which LLM providers are supported? A: OpenAI, Azure OpenAI, AWS Bedrock, and any OpenAI-compatible local model server.

Q: Does it modify my cluster? A: No. HolmesGPT is read-only by default. It gathers evidence but does not take remediation actions unless explicitly configured.

Q: What is the CNCF Sandbox status? A: HolmesGPT was accepted into the CNCF Sandbox, indicating recognition by the cloud-native community as a promising early-stage project.

Q: Can I use it without Kubernetes? A: The primary focus is Kubernetes, but HolmesGPT can investigate any system where you provide tooling for evidence gathering.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产