Skip to content

cusawaiagent/sample-agentic-aiops-k8s-sherlock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Agentic AIOps K8s Sherlock

An intelligent Kubernetes troubleshooting system using AI agents for automated incident response and root cause analysis.

Overview

This project demonstrates how to build an agentic AIOps system that can automatically investigate Kubernetes issues, analyze observability data, and provide actionable insights for SRE teams.

Architecture

Architecture

Features

  • 🔍 Intelligent Diagnostics: AI-powered Kubernetes cluster analysis
  • 📊 Observability Integration: CloudWatch metrics, logs, and alarms analysis
  • 💾 Database Insights: DynamoDB performance and throttling detection
  • 🤖 Multi-Agent Coordination: Specialized agents working together
  • 🔗 Amazon Q Integration: Natural language interface for investigations

Pre requisites

Quick Start

# Install dependencies
uv sync

#(optional) create package
uv pip install -e .

# Execute the aws eks update-kubeconfig command to bridge the authentication gap between your local tools and the remote AWS EKS cluster. 
# This is needed by k8sgpt to analyze pods, deployments, events in the EKS cluster
aws eks update-kubeconfig --region us-east-1 --name retail-store


# Testing
python scripts/test_orchestrator.py

Amazon Q CLI

# ~/.aws/amazonq/mcp.json

{
  "mcpServers": {
    "sherlock": {
      "command": "sherlock-mcp-server",
      "args": [],
      "env": {
        "AWS_REGION": "us-east-1",
        "KUBECONFIG": "~/.kube/config",
        "BYPASS_TOOL_CONSENT": "true"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Troubleshooting:

tail -f ~/.aws/amazonq/sherlock-mcp.log

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Agentic AIOPS for Kubernetes

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%