Open-source alert investigation agent. Written in Go.
Noalarms.
If the agent stops before it finds the cause, it escalates the investigation. Escalation writes a log entry. It does not page a person.
The agent receives alerts from Alertmanager and GCP Monitoring. For each alert, a model runs shell commands and metric queries. Then the model writes the root cause and the evidence.
You run the agent on your infrastructure. You supply the API key for the model.
Read the source code on GitHub ↗$ ./agent serve --show-thinking --thinking --auto-approve-safe --config config/alert-sources.example.yaml System: Registered alert source: alertmanager (type=prometheus, path=/alerts/prometheus) System: Registered alert source: gcp-alerts (type=gcp_monitoring, path=/alerts/gcp) System: Starting webhook server on :8080 System: Webhook: POST http://localhost:8080/alerts/gcp Claude is thinking... Let me investigate this GCP alert about high CPU load average on a GKE node. System: [AUTO-APPROVED] Query the CPU load 1m metric for the specific GKE node over the past 2 hours cloud_metrics.py query -m compute.googleapis.com/guest/cpu/load_1m \ -f 'metric.labels.instance_name="gke-prod-pool-4bde38d8-tn3e"' -d 2h --stats System: [AUTO-APPROVED] Query Kubernetes container CPU usage on the specific node to identify top consumers cloud_metrics.py query -m kubernetes.io/container/cpu/core_usage_time \ --aligner ALIGN_RATE --top 20 --stats System: [AUTO-APPROVED] Query VM-level CPU utilization for the specific instance cloud_metrics.py query -m compute.googleapis.com/instance/cpu/utilization --aligner ALIGN_MEAN Claude is thinking... Key findings so far: 1. CPU load_1m spiked massively in two waves: - Spike 1: ~00:17-00:26 UTC, peak 76.38 - Spike 2: ~00:34-00:37+ UTC, peak 79.95+ 2. The `password-exchange` container is the TOP CPU consumer during the spike window 3. VM CPU utilization is at 43.73% System: [AUTO-APPROVED] Query container restarts, disk I/O, and password-exchange pod CPU timeline to finalize root cause cloud_metrics.py query -m compute.googleapis.com/instance/disk/read_bytes_count --aligner ALIGN_RATE Claude is thinking... Load average of 76-80 with only 43% CPU utilization strongly indicates disk I/O pressure. INFO complete_investigation called [AlertHandler] Investigation completed: status=completed, findings=8, confidence=0.82 [AlertHandler] Findings: 1. TWO distinct spike events confirmed on node gke-prod-pool-4bde38d8-tn3e: Spike 1 at 00:17–00:26 UTC (peak load 76.38), Spike 2 at 00:34–00:37+ UTC (peak 79.95). 2. Critical discrepancy: node load_1m peaked at 76–80, but VM CPU utilization was only 43.7% (max). 3. Disk read activity confirmed during spike window on the permanent disk: peak 1.6 MB/s reads, avg 442 KB/s. 4. Primary culprit identified: container 'password-exchange' in pod passwordexchange-dev-deployment-9bdcb7d96-q6gsr shows PERFECT timing correlation with both spikes. … 4 more
[AlertHandler] Investigation completed: status=completed, findings=8, confidence=0.82Signal path
Each label is a Go type in the repositoryPrometheusSource · GCPMonitoringSourceReceive
Alertmanager or Cloud Monitoring sends a POST request to /alerts/{source}. You set the path for each source. Basic auth is optional.
InvestigationRunnerInvestigate
The model uses bash, file and fetch tools. It can also send tasks to subagents. A validator checks each shell command before the command runs.
RCAServiceCorrelate
RCAService changes the findings into a list of causes and a list of remedies. Each cause has a confidence score.
EscalationHandlerEscalate?
- Yes
- The agent called
escalate_investigation, the time limit expired, or the agent used all 20 actions. The handler writes a log entry. - No
- The investigation completes. The investigation keeps the RCA.
Output
entity.RCAFindingRCAFinding { summary string causes []Cause1 description, confidence_score 0.0–1.0, evidence[] remedies []Remedy2 description, actionable_steps[], impact High|Medium|Low }
- 1
Each cause has a confidence score from 0 to 1. Each cause also has the evidence that the model used.
- 2
Each remedy has a list of steps. Each remedy also has an impact level: High, Medium or Low.
Parts list
Go · Apache 2.0| Item | Part | Location | Note |
|---|---|---|---|
| Core | |||
| 1 | Structured RCA | internal/domain/entity/rca.go | The RCAFinding, Cause and Remedy types. |
| 2 | Command safety | internal/domain/safety/ | Blacklist mode is the default. Whitelist mode allows only the commands on the list. The default list is read-only. |
| 3 | Subagents | internal/infrastructure/adapter/subagent/ | Each subagent has its own context. A subagent cannot start other subagents. |
| 4 | Skills | skills/ | SKILL.md files in agentskills.io format. The agent loads a skill only when it needs the skill. |
| 5 | Plan mode | internal/infrastructure/adapter/tool/planning_executor_adapter.go | The agent writes each tool call to .agent/plans/. The agent does not run the tool calls. |
| 6 | Auto-compaction | internal/domain/service/conversation_service.go | When the conversation is more than 160k tokens, the agent makes a summary. You can change this limit. |
| Inputs | |||
| 7 | Prometheus Alertmanager | internal/infrastructure/adapter/alert/prometheus_source.go | Receives standard Alertmanager webhook payloads. |
| 8 | GCP Monitoring | internal/infrastructure/adapter/alert/gcp_monitoring_source.go | Receives Cloud Monitoring notification payloads. |