Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🛡️ Aegis-Observe: SRE Copilot

Agents of SigNoz Hackathon License: MIT Python 3.11 Kubernetes GitOps

Aegis-Observe is an SRE Copilot featuring rule-based SigNoz telemetry signal detection, LLM-selected remediations, and human-in-the-loop authorization (with an optional fully-autonomous mode), built specifically for the Agents of SigNoz Hackathon (Track 01: AI & Agent Observability).

It connects rule-based signal detection over SigNoz telemetry (MCP log-signature searches & Kubernetes status checks) with an LLM decision layer (Azure OpenAI gpt-5-mini) to select exact remediation tools. The agent executes human-authorized remediations through GitOps and Kubernetes APIs across all 5 Pillars of SigNoz Observability — Traces, Metrics, Logs, Dashboards, and Alert Rules.


📽️ Demo & Interactive Evidence

Important

Submission Demonstration Artifacts

📸 Visual Interface Evidence

Interactive Slack Proposal Slack PR Authorized GitHub Pull Request Created & Merged
Slack Proposal Card Slack PR Authorized GitHub PR Merged
SigNoz Aegis Dashboard SigNoz SRE Agent Metrics Kubernetes Node Metrics
SigNoz Aegis Dashboard SigNoz SRE Agent Metrics K8s Node Metrics

🚀 System Architecture Overview

graph TB
    subgraph "GitOps Architecture (Shrinet82/flagship-gitops)"
        ROOT["ArgoCD Root App"]
        ROOT --> MLOPS["MLOps Manifests"]
    end

    subgraph "Kubernetes Workload Layer (oppe2-app)"
        FRAUD["Fraud Detection API<br/>(FastAPI + OTel SDK)"]
        AGENT["Aegis SRE Copilot Agent<br/>(Python + OTel SDK + Socket Mode)"]
        MCP["SigNoz MCP Server<br/>(Streamable HTTP)"]
    end

    subgraph "Observability Layer (signoz)"
        DASH["SigNoz Dashboard, Alerts & ClickHouse Store<br/>(signoz_traces.signoz_index_v3)"]
    end

    subgraph "Human-in-the-Loop Gateway"
        SLACK["Slack Workspace<br/>(Socket Mode + Block Kit)"]
        GITHUB["GitHub Repository<br/>(PRs & Direct Commits)"]
    end

    FRAUD -->|"OTLP Traces, Metrics, Logs"| DASH
    AGENT -->|"OTel Self-Tracing (Token Usage Spans)"| DASH
    AGENT -->|"1. Telemetry Mining"| MCP
    MCP -->|"Logs & Traces"| DASH
    AGENT -->|"2. Interactive Proposal"| SLACK
    SLACK -->|"3. Human Approval"| AGENT
    AGENT -->|"4. Tiered Remediation"| GITHUB
    GITHUB -->|"Sync Manifests"| ROOT
Loading

🧠 Core Capabilities & Feature Matrix

Feature Description File Reference
SigNoz MCP Telemetry Mining Mines ClickHouse log streams and trace indexes via Streamable HTTP MCP tools. mcp_client.py
SigNoz Alert Rules Suite Declarative alert rules for agent cost guardrails (llm_token_usage.json) and app 504 SLO breaches (fraud_api_504.json). alerts/
Circuit-Breaker Locking PENDING_INCIDENTS set locks diagnostic loops while alerts sit in Slack, preventing race conditions. agent.py
Interactive Slack Gateway Slack Block Kit UI with Socket Mode (Approve, PR, Reject) embedding stateless payloads. slack_notifier.py
Tiered GitOps Remediation Tier 1 instant push to main vs Tier 2 GitHub PR creation with LLM reasoning breakdown. gitops.py
Node Cordon & Drain Direct Kubernetes API node cordoning and eviction for hardware pressure. k8s_tools.py
OTel Self-Observability Exports agent token consumption (gen_ai.usage.prompt_tokens) and tool spans to SigNoz. agent.py

🎯 Scope & Limitations

Note

Intentional Demo Scope

  • Target Workload: Currently demo-scoped to the fraud-detection-api deployment in namespace oppe2-app. Log signatures (e.g., "OOMKilled", "504", "drift detected"), target GitOps manifest paths, and cooldown annotations are configured specifically for this workload.
  • Human Authorization: Remediations are human-authorized by default via interactive Slack cards (Approve, PR, Reject). Fully autonomous execution runs only if SLACK_APP_TOKEN is unset.
  • Generalizable Pattern: The underlying Rule-Based Signal Detection (SigNoz MCP) ➔ LLM Remediation Selection ➔ Human Authorization ➔ GitOps Fix ➔ Verification pattern fully generalizes; multi-service dynamic discovery represents future work.

🏆 Hackathon Rules & Reproducibility Compliance

1. SigNoz Foundry Reproducibility (casting.yaml & foundryctl)

In accordance with the SigNoz Foundry Reproducibility Requirement, casting.yaml and casting.yaml.lock are maintained at the root of the repository:

  • casting.yaml — Declarative installation specification adhering strictly to the official SigNoz Foundry schema (flavor: helm, mode: kubernetes).
  • casting.yaml.lock — Resolved deployment lockfile generated via foundryctl forge -f casting.yaml.

Verified Reproducibility Workflow

Tested & verified using official SigNoz foundryctl v0.2.16:

# 1. Install or update foundryctl (if not already installed)
curl -fsSL https://signoz.io/foundry.sh | bash

# 2. Validate casting specification schema
foundryctl gauge -f casting.yaml

# 3. Forge resolved lockfile
foundryctl forge -f casting.yaml

# 4. Provision the SigNoz observability stack in Kubernetes
foundryctl cast -f casting.yaml

Verified Command Execution Output:

  • foundryctl gauge -f casting.yaml ➔ Passed (Exit Code 0)
  • foundryctl forge -f casting.yaml ➔ Lockfile Generated (Exit Code 0)
  • foundryctl cast -f casting.yaml ➔ Release "signoz" deployed (Exit Code 0)

2. SigNoz MCP & 5-Pillar Observability Requirement

The agent natively queries SigNoz telemetry using the official SigNoz MCP Server endpoint (http://signoz-mcp.oppe2-app.svc.cluster.local:8000/mcp) via signoz_search_logs and signoz_get_trace_details. It integrates all 5 SigNoz observability pillars: Traces, Metrics, Logs, Dashboards, and Alert Rules.

3. AI Assistance Disclosure

In accordance with the Agents of SigNoz Hackathon rules, we explicitly declare that AI coding assistants (including ChatGPT, Claude, and Gemini Antigravity) were utilized during the development of this project for architectural brainstorming, boilerplate generation, unit test creation, and pair programming. All core logic, safety guardrails, MCP server integrations, and telemetry configurations were thoroughly audited, tested, and validated by human developers.


📖 Complete Technical Documentation

For in-depth architectural guides, configuration details, and query schemas, refer to the technical docs:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages