AI Agents
What are AI Agents
OpsWorker uses specialized AI agents to investigate alerts and answer questions about your infrastructure. Each agent has access to specific tools and data sources, allowing it to query different parts of your environment.
During investigations and chat sessions, OpsWorker automatically selects which agents to invoke based on the question being asked and which integrations are configured for the cluster.
Available Agents
| Agent | Data Source | Capabilities | Requires |
|---|---|---|---|
| Kubernetes Agent | Kubernetes API (via Kubernetes MCP) | Query pods, deployments, services, ingresses, events, logs, configs | Kubernetes Agent installed |
| Git Agent | GitHub / GitLab | View commits, PRs, blame info, correlate code changes | GitHub or GitLab integration |
| Observability Agent | Grafana (via Grafana MCP) | PromQL metrics, LogQL log search, dashboards, alert rules, incidents, on-call schedules | Grafana MCP integration |
How They Work
During Automatic Investigations
When an alert triggers an investigation, agents work together in a multi-step workflow:
- Field extraction — Identifies the affected namespace, pod, severity, and other details from the alert
- Topology discovery — The Kubernetes Agent maps affected resources and their dependencies (pod → service → ingress)
- Data collection — Agents gather logs, events, configs, metrics, and recent code changes
- Analysis — AI analyzes all collected data to identify the root cause
- Recommendations — Generates specific remediation steps
During AI Chat
When you ask a question in AI Chat, OpsWorker selects the appropriate agents based on your query:
- "Why is pod X crashing?" → Kubernetes Agent (logs, events, configs)
- "What PRs were merged today?" → Git Agent (commit history)
- "What's the error rate for service Y?" → Observability Agent (PromQL via Grafana MCP)
- "Why is the service slow?" → Multiple agents working together
Dynamic Selection
Agents are only available if the corresponding integration is configured for the cluster. If you haven't connected GitHub, the Git Agent won't be invoked. This means:
- Minimum setup: Install the Kubernetes Agent — this enables core investigation capabilities
- Enhanced setup: Add Git or Grafana MCP integrations for deeper analysis
Next Steps
- Kubernetes AI Agent — Core investigation agent
- Multi-Agent Workflows — How agents work together
- Integrations — Connect additional data sources