It is 2 AM and an alert says the error rate on the payroll service is high. The on-call engineer opens the metrics, then the logs, then the pod events, then the last deployment, and tries to link them. Most of that time is spent finding where to look, and the answer is often ordinary: a bad image, an exhausted connection pool, a failing dependency. HolmesGPT does the looking. Given an alert or a question, it makes a task list, queries your monitoring and cluster, links the evidence and writes down the likely cause. It is a CNCF Sandbox project, and the CNCF blog says it was accepted in October 2025. It builds on the signals from Prometheus and OpenTelemetry, and it is a sibling of the cluster agents in the kagent brief.
CNCF daily · Sprint 6, post 26 of 26 · Observability · CNCF Sandbox
At a glance
| Category | Observability and Analysis › Observability (Landscape) |
| CNCF status | Sandbox, accepted 8 Oct 2025 |
| Repository | github.com/HolmesGPT/holmesgpt; docs at holmesgpt.dev |
| Origin | Originally created by Robusta.Dev, with major contributions from Microsoft, according to the PyPI page |
| Licence | Apache 2.0 |
| What it does | Investigates alerts and questions with an agentic loop, and suggests root causes and next steps |
| Data sources | Built-in toolsets such as Prometheus, Loki, Kubernetes, Grafana, Tempo, Helm, ArgoCD, Elasticsearch and OpenSearch, Datadog, Kafka, and more; custom toolsets and MCP servers can be added |
| Alert sources | AlertManager, PagerDuty, OpsGenie and Jira through the CLI; Slack and Teams through Robusta |
| Models | OpenAI, Anthropic, Azure, Bedrock, Gemini and more, so you can bring your own key |
| Ways to run | CLI (holmes ask, holmes investigate), HTTP server with a Helm chart, Python SDK, and an optional Kubernetes operator mode |
| Kubernetes required? | No; it also works with VMs and cloud services |
| Versions seen | PyPI release pages up to 0.30.0; I did not confirm the current release |
The problem HolmesGPT solves
| Question | Manual on-call | With HolmesGPT |
|---|---|---|
| Where do I start? | Open five dashboards | The agent builds a task list and runs the queries |
| What changed? | Compare deployments by hand | It checks events, specs and recent rollouts |
| Is it the app or the platform? | Argue in chat | It correlates metrics, logs and cluster state |
| Does the team’s knowledge get used? | Lives in people’s heads | Runbooks and custom toolsets encode it |
| Night-time fatigue | Mistakes at 2 AM | A first analysis is ready when the engineer arrives |
| Writing the incident note | Copy and paste | The findings can be written back to the alert or Slack |
Key concepts
| Term | Meaning |
|---|---|
| Agentic loop | The model plans, calls a tool, reads the result and decides the next step until it can conclude |
| Toolset | A group of tools for one data source, such as Prometheus or Loki |
| Runbook | Written instructions for a known alert, which the agent follows |
| Investigate | The mode that takes an alert from a source and analyses it |
| Ask | The mode that answers a free-form question |
| Operator mode | HolmesGPT running in the cluster to run health checks and investigations in the background |
| Transformers | A step that shrinks large tool output before it goes to the main model |
| Write-back | Posting the analysis to the alert, ticket or Slack |
Architecture
Blue is the alert and the report, grey is the model and the data sources and teal is HolmesGPT and its toolsets. Open the zoomable diagram, or download it as SVG or PNG.
| Component | Responsibility |
|---|---|
| Alert source | AlertManager, PagerDuty, OpsGenie or Jira provides the alert to investigate. |
| HolmesGPT | Runs the agentic loop and produces the analysis. |
| LLM provider | Does the reasoning; can be a hosted model or a self-hosted one such as vLLM. |
| Toolsets and runbooks | Built-in and custom tools, and instructions for known problems. |
| Prometheus, Loki, Kubernetes | The data the agent reads: metrics, logs, events and resource status. |
| Root-cause report | The result, written back to the alert source or Slack. |
One investigation
- Start. An alert arrives, or an engineer asks a question.
- Query. HolmesGPT makes a task list and runs each part.
- Evidence. Metrics, logs, events and specs come back from the toolsets.
- Conclude. The model links the evidence into a likely cause.
- Notify. The report goes to the alert source or Slack, and the engineer reviews it.
Open the zoomable flow diagram, or download it as SVG or PNG.
Real world: the payroll error rate
At 2:10 AM an alert says the payroll service has a high error rate. HolmesGPT picks it up from AlertManager. It checks the error metric in Prometheus, finds that the rise began at 1:55, reads the pod events and sees pods restarting with out-of-memory kills, and sees from the deployment history that a new version rolled out at 1:50. It reports: the new release likely raised memory use, and rolling back is the first step to consider. The on-call engineer reads the report at 2:15, checks the memory graph, rolls back through the normal pipeline and writes the follow-up. The agent suggested; the person acted.
Install HolmesGPT
These steps follow the README and PyPI page. I did not run them for this post.
# Homebrew (from the CNCF blog and README)
brew tap robusta-dev/homebrew-holmesgpt
brew install holmesgpt
# or use pipx, Docker, or Poetry; see the installation docs for each
Set up a model key. The docs list OpenAI, Anthropic, Azure, Bedrock, Gemini and others, and the LLM providers page says how to set the key for each. For example, with a provider that reads an environment variable:
export OPENAI_API_KEY="..." # or the variable your provider uses
On Kubernetes the README says there is a Helm chart that deploys the HTTP server, and an operator mode that runs investigations in the background. I did not see the chart repository or values in the sources I read, so take them from the installation docs rather than from this post.
Try it
# ask a question about the cluster your kubeconfig points to
holmes ask "what pods are unhealthy and why?"
# ask follow-up questions in interactive mode
holmes ask "what pods are unhealthy and why?" --interactive
# investigate alerts from AlertManager
kubectl port-forward alertmanager-robusta-kube-prometheus-st-alertmanager-0 9093:9093 &
holmes investigate alertmanager --alertmanager-url http://localhost:9093
The port-forward name is the example from the README; use your own AlertManager service. PagerDuty and OpsGenie have their own holmes investigate forms; the README shows holmes investigate opsgenie --opsgenie-api-key ....
A custom tool is written as YAML. The CNCF blog shows this shape:
holmes:
toolsets:
kubernetes/pod_status:
description: "Check the status of a Kubernetes pod."
tools:
- name: "get_pod"
description: "Fetch pod details"
# the command to run is set here; see the toolset docs for the fields
The blog excerpt I read was cut off after the tool description, so the command field is not shown. Use the custom toolsets docs for the full format.
Production reference design
- Start in the CLI. Run
holmes askagainst a test cluster, then add alert sources. - Keep access read-only. The README says it has read-only access and respects RBAC; give it a service account with narrow, read-only roles.
- Choose the model deliberately. Use a provider your data policy allows, or a self-hosted model through your gateway.
- Write runbooks for your top alerts. Codify the first five checks for the alerts that wake people up most.
- Add your own toolsets. Expose internal systems, such as the ERP’s job queue, through custom toolsets or an MCP server (see the MCP brief).
- Connect alert sources. AlertManager first, then PagerDuty or Jira.
- Write back, don’t act. Post the analysis to the alert or Slack; keep fixes in the normal pipeline with review.
- Trace the agent. Send its model calls to Langfuse to track cost and quality.
- Evaluate on past incidents. Replay old alerts and compare the answers with the real causes.
- Watch cost. Large log queries and many tool calls add model cost; use the output transformers and limits.
Security
- Remediation toolsets exist. The built-in list includes a Kubernetes Remediation toolset (via MCP) that can scale, roll back and edit resources, and a GitHub toolset that can open pull requests. Leave those off unless you want the agent to change things, and keep approvals in place.
- Data goes to the model. Logs and events can contain personal data or secrets; the README suggests bringing your own model key for privacy. Mask sensitive data and choose the provider with care.
- Credentials. The agent holds read credentials for monitoring and the cluster; store them as secrets and scope them.
- Prompt injection. Log lines and ticket text come from outside and may contain instructions meant for the model; keep tools read-only and review the output.
- Slack and ticket write-back. Reports posted to shared channels can leak details; choose channels carefully.
- Audit. Record who asked what and what the agent ran.
Troubleshooting
This table is built from the HolmesGPT README and common agent deployment problems. I did not run HolmesGPT for this post, so check each entry in your environment.
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| Model error or no answer | Missing or wrong provider key | The error text; the env variable | Set the key as the LLM providers page says |
| It cannot see my cluster | Wrong kubeconfig or context | kubectl config current-context |
Point to the right context, or run it in-cluster |
| No alerts found | AlertManager not reachable | The URL and port-forward | Port-forward or use the in-cluster URL |
| Prometheus queries fail | Toolset not configured for your URL | Toolset config | Set the Prometheus URL in the toolset settings |
| Answers are shallow | Missing data sources | Which toolsets are on | Enable Loki, Tempo and other toolsets you run |
| Answers cost too much | Huge log or metric outputs | Token use in traces | Use transformers, narrower queries and a smaller model for tool steps |
| Wrong cause suggested | Evidence missing or misleading | Read the tool calls it made | Add runbooks and custom toolsets; treat output as a lead |
| Permission denied | RBAC too narrow | The error and the role | Grant specific read access, not broad write |
| Slack or Teams not working | These come through Robusta | Docs for the integration | Use the Robusta integration or write back through the CLI |
| Model mixes up similar services | Too little context | The prompt and the runbook | Add service context and ownership in runbooks |
Usage cases
- First-line triage. A ready analysis when an alert fires.
- Questions in plain language. “Why is this pod pending?” without writing the commands.
- Alert enrichment. Add likely cause and links to PagerDuty, OpsGenie or Jira tickets.
- Knowledge capture. Turn runbooks into tools the agent follows.
- Multi-source correlation. Metrics, logs, traces and deployments in one answer.
- In the Sprint 6 project. On-call for the ERP on EKS: alerts from Prometheus lead to a HolmesGPT report in Slack, next to traces and logs from Jaeger and Loki.
Operational considerations
- It reduces searching and does not remove judgement. Treat the report as a strong lead, and check it.
- Alert quality matters. Noisy alerts give noisy analyses; fix alerts too.
- Cost and latency. Each investigation makes several model and tool calls; set limits.
- Keep runbooks fresh. Out-of-date runbooks lead the agent to old advice.
- Sandbox maturity. It is early-stage in the CNCF; expect fast changes, and pin versions.
- Ownership. Name who maintains toolsets, runbooks and model keys.
Adoption
The README points to a maintainers and adopters file. I did not read it for this post, so I list no named end users. The PyPI page credits Robusta.Dev as the creator and Microsoft with major contributions.
Alternatives
| Solution | Model | Best suited to |
|---|---|---|
| K8sGPT | A CNCF sandbox tool that scans Kubernetes resources and explains problems with an LLM | Cluster-focused diagnosis without wider observability sources |
| kagent | A framework for building and running your own agents on Kubernetes | Teams that want to design custom agents, not use a ready root-cause agent |
| Observability vendor AI assistants | Built-in assistants from Datadog, New Relic, Grafana and others | Teams that already use one vendor’s platform |
| Runbook automation | Scripted checks and playbooks, with no model | Known, repeatable problems where a script is enough |
| Cloud provider assistants | Managed troubleshooting help on one cloud | Teams on a single cloud provider |
| Manual on-call with good dashboards | People reading dashboards | Small systems with few incidents |
Strengths and limitations
| Strengths | Limitations |
|---|---|
| Many built-in data sources, and custom toolsets and MCP | Output can be wrong; it needs review |
| Read-only by design and respects RBAC | Remediation toolsets exist and need careful control |
| Bring your own model, including self-hosted ones | Logs and events go to the model |
| CLI, server, SDK and operator modes | Some alert integrations are CLI only or go through Robusta |
| Works beyond Kubernetes | Sandbox project, still changing |
| Alerts and write-back in one flow | Model cost grows with investigation depth |
Recommendation
Adopt as a read-only first responder for on-call, starting in the CLI. Run it against a staging cluster, connect AlertManager, write runbooks for the three alerts that wake you most, and post its analysis to Slack without letting it change anything. Trace its model calls in Langfuse and replay past incidents to measure how often it is right. Keep remediation toolsets off and fixes in the pipeline with review. If your alerts are few and well understood, plain runbooks may be enough, and if you want to design your own agents, look at kagent.
References: HolmesGPT repository · HolmesGPT README · HolmesGPT on PyPI · CNCF blog: HolmesGPT, agentic troubleshooting built for the cloud native era · Original repository (robusta-dev) · CNCF Landscape

