Skip to main content

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

AgentData SourceCapabilitiesRequires
Kubernetes AgentKubernetes APIQuery pods, deployments, services, ingresses, events, logs, configsKubernetes Agent installed
Git AgentGitHub / GitLabView commits, PRs, blame info, correlate code changesGitHub or GitLab integration
Datadog AgentDatadogQuery metrics, traces, monitorsDatadog integration
Observability AgentGrafanaQuery dashboards, metrics panelsGrafana MCP integration

How They Work

During Automatic Investigations

When an alert triggers an investigation, agents work together in a multi-step workflow:

  1. Field extraction — Identifies the affected namespace, pod, severity, and other details from the alert
  2. Topology discovery — The Kubernetes Agent maps affected resources and their dependencies (pod → service → ingress)
  3. Data collection — Agents gather logs, events, configs, metrics, and recent code changes
  4. Analysis — AI analyzes all collected data to identify the root cause
  5. 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?" → Datadog or Observability Agent (metrics)
  • "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, Datadog, or Grafana integrations for deeper analysis

Next Steps