# mayurzope06/intelligent-aiops architecture

> Architecture diagram of the GitHub repository mayurzope06/intelligent-aiops, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mayurzope06/intelligent-aiops
- Repository: https://github.com/mayurzope06/intelligent-aiops

## Overview

Intelligent AIOps is an SRE command center for observing a commerce microservice cluster, correlating telemetry into incidents, diagnosing causes, and coordinating operator-approved remediation verified against live metrics. The main workflow runs from the React console through the backend’s telemetry and correlation logic to diagnosis or service actions, then returns incident and audit state to the console. The README documents broader capabilities than the sampled excerpts; edges for those capabilities are included only where the README or source supports them.

Main entry points: [`backend/index.js`](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/index.js) (AIOps API), [`frontend/src/App.jsx`](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/App.jsx) (Operations Console), [`services/order-service/src/server.js`](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/order-service/src/server.js) (Order Service), [`services/gateway-service/src/server.js`](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/gateway-service/src/server.js) (API Gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["SRE Console"]
  node_app["Operations Console<br/>[App.jsx]"]
  node_topology_view["Topology Canvas<br/>[TopologyView.jsx]"]
  node_incidents_view["Incident View<br/>[IncidentsView.jsx]"]
  node_rca_modal["RCA Modal<br/>[RCAModal.jsx]"]
  node_progress_hud["Progress HUD"]
end

subgraph group_core["AIOps Core"]
  node_backend["AIOps API<br/>[index.js]"]
  node_topology["Dependency Topology<br/>[topology.js]"]
  node_prom_adapter["Prometheus Adapter"]
  node_loki_adapter["Loki Adapter<br/>[lokiAdapter.js]"]
  node_correlation["Signal Correlation"]
  node_ai["AI Reasoning<br/>[aiReasoning.js]"]
  node_rag["Runbook Retrieval<br/>[ragEngine.js]"]
  node_incidents["Incident Manager<br/>[incidentManager.js]"]
  node_storage[("Local State<br/>[storage.js]")]
  node_runbooks["Runbook Files"]
end

subgraph group_cluster["Commerce Cluster"]
  node_gateway["API Gateway<br/>[server.js]"]
  node_auth["Auth Service<br/>[server.js]"]
  node_orders["Order Service<br/>[server.js]"]
  node_inventory["Inventory Service<br/>[server.js]"]
  node_payment["Payment Service<br/>[server.js]"]
end

subgraph group_observability["Observability Services"]
  node_prometheus["Prometheus"]
  node_loki["Loki"]
end

node_operator(("SRE Operator"))
node_mongo[("MongoDB Cluster")]
node_gemini["Google Gemini"]

node_operator -->|"operates"| node_app
node_app -->|"queries and commands"| node_backend
node_app -->|"renders"| node_topology_view
node_app -->|"renders"| node_incidents_view
node_app -->|"shows diagnosis"| node_rca_modal
node_app -->|"shows progress"| node_progress_hud
node_backend -->|"reads graph"| node_topology
node_backend -->|"queries telemetry"| node_prom_adapter
node_backend -->|"correlates signals"| node_correlation
node_correlation -->|"queries metrics"| node_prom_adapter
node_correlation -->|"fetches errors"| node_loki_adapter
node_backend -->|"requests diagnosis"| node_ai
node_ai -->|"retrieves context"| node_rag
node_rag -->|"reads and indexes"| node_runbooks
node_ai -.->|"generates RCA"| node_gemini
node_backend -->|"manages incidents"| node_incidents
node_incidents -->|"reads and writes"| node_storage
node_backend -->|"injects and remediates"| node_gateway
node_backend -->|"injects and remediates"| node_auth
node_backend -->|"injects and remediates"| node_orders
node_backend -->|"injects and remediates"| node_inventory
node_backend -->|"injects and remediates"| node_payment
node_gateway -->|"verifies identity"| node_auth
node_gateway -->|"forwards checkout"| node_orders
node_orders -->|"reserves stock"| node_inventory
node_orders -->|"charges payment"| node_payment
node_payment -->|"uses database"| node_mongo
node_prometheus -->|"scrapes metrics"| node_gateway
node_prometheus -->|"scrapes metrics"| node_auth
node_prometheus -->|"scrapes metrics"| node_orders
node_prometheus -->|"scrapes metrics"| node_inventory
node_prometheus -->|"scrapes metrics"| node_payment
node_prom_adapter -->|"queries API"| node_prometheus
node_loki_adapter -->|"queries logs"| node_loki

click node_app "https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/App.jsx"
click node_topology_view "https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/TopologyView.jsx"
click node_incidents_view "https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/IncidentsView.jsx"
click node_rca_modal "https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/RCAModal.jsx"
click node_progress_hud "https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/AsyncProgressHUD.jsx"
click node_backend "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/index.js"
click node_topology "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/config/topology.js"
click node_prom_adapter "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/adapters/prometheusAdapter.js"
click node_loki_adapter "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/adapters/lokiAdapter.js"
click node_correlation "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/engine/correlationEngine.js"
click node_ai "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/engine/aiReasoning.js"
click node_rag "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/rag/ragEngine.js"
click node_incidents "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/services/incidentManager.js"
click node_storage "https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/services/storage.js"
click node_gateway "https://github.com/mayurzope06/intelligent-aiops/blob/main/services/gateway-service/src/server.js"
click node_auth "https://github.com/mayurzope06/intelligent-aiops/blob/main/services/auth-service/src/server.js"
click node_orders "https://github.com/mayurzope06/intelligent-aiops/blob/main/services/order-service/src/server.js"
click node_inventory "https://github.com/mayurzope06/intelligent-aiops/blob/main/services/inventory-service/src/server.js"
click node_payment "https://github.com/mayurzope06/intelligent-aiops/blob/main/services/payment-service/src/server.js"
click node_runbooks "https://github.com/mayurzope06/intelligent-aiops/tree/main/backend/rag"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_topology_view,node_incidents_view,node_rca_modal,node_progress_hud toneBlue
class node_backend,node_topology,node_prom_adapter,node_loki_adapter,node_correlation,node_ai,node_rag,node_incidents,node_storage,node_runbooks,node_mongo toneAmber
class node_gateway,node_auth,node_orders,node_inventory,node_payment toneMint
class node_prometheus,node_loki toneRose
class node_operator,node_gemini toneIndigo
```

## Components

### SRE Console

- [Operations Console](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Topology Canvas](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/TopologyView.jsx): `frontend/src/components/TopologyView.jsx`
- [Incident View](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/IncidentsView.jsx): `frontend/src/components/IncidentsView.jsx`
- [RCA Modal](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/RCAModal.jsx): `frontend/src/components/RCAModal.jsx`
- [Progress HUD](https://github.com/mayurzope06/intelligent-aiops/blob/main/frontend/src/components/AsyncProgressHUD.jsx): `frontend/src/components/AsyncProgressHUD.jsx`

### AIOps Core

- [AIOps API](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/index.js): `backend/index.js`
- [Dependency Topology](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/config/topology.js): `backend/config/topology.js`
- [Prometheus Adapter](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/adapters/prometheusAdapter.js): `backend/adapters/prometheusAdapter.js`
- [Loki Adapter](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/adapters/lokiAdapter.js): `backend/adapters/lokiAdapter.js`
- [Signal Correlation](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/engine/correlationEngine.js): `backend/engine/correlationEngine.js`
- [AI Reasoning](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/engine/aiReasoning.js): `backend/engine/aiReasoning.js`
- [Runbook Retrieval](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/rag/ragEngine.js): `backend/rag/ragEngine.js`
- [Incident Manager](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/services/incidentManager.js): `backend/services/incidentManager.js`
- [Local State](https://github.com/mayurzope06/intelligent-aiops/blob/main/backend/services/storage.js): `backend/services/storage.js`
- [Runbook Files](https://github.com/mayurzope06/intelligent-aiops/tree/main/backend/rag): `backend/rag`

### Commerce Cluster

- [API Gateway](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/gateway-service/src/server.js): `services/gateway-service/src/server.js`
- [Auth Service](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/auth-service/src/server.js): `services/auth-service/src/server.js`
- [Order Service](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/order-service/src/server.js): `services/order-service/src/server.js`
- [Inventory Service](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/inventory-service/src/server.js): `services/inventory-service/src/server.js`
- [Payment Service](https://github.com/mayurzope06/intelligent-aiops/blob/main/services/payment-service/src/server.js): `services/payment-service/src/server.js`

### Observability Services

- **Prometheus**
- **Loki**

### Other components

- **SRE Operator**
- **MongoDB Cluster**
- **Google Gemini**

## Connections

- SRE Operator → Operations Console: operates
- Operations Console → AIOps API: queries and commands
- Operations Console → Topology Canvas: renders
- Operations Console → Incident View: renders
- Operations Console → RCA Modal: shows diagnosis
- Operations Console → Progress HUD: shows progress
- AIOps API → Dependency Topology: reads graph
- AIOps API → Prometheus Adapter: queries telemetry
- AIOps API → Signal Correlation: correlates signals
- Signal Correlation → Prometheus Adapter: queries metrics
- Signal Correlation → Loki Adapter: fetches errors
- AIOps API → AI Reasoning: requests diagnosis
- AI Reasoning → Runbook Retrieval: retrieves context
- Runbook Retrieval → Runbook Files: reads and indexes
- AI Reasoning → Google Gemini: generates RCA
- AIOps API → Incident Manager: manages incidents
- Incident Manager → Local State: reads and writes
- AIOps API → API Gateway: injects and remediates
- AIOps API → Auth Service: injects and remediates
- AIOps API → Order Service: injects and remediates
- AIOps API → Inventory Service: injects and remediates
- AIOps API → Payment Service: injects and remediates
- API Gateway → Auth Service: verifies identity
- API Gateway → Order Service: forwards checkout
- Order Service → Inventory Service: reserves stock
- Order Service → Payment Service: charges payment
- Payment Service → MongoDB Cluster: uses database
- Prometheus → API Gateway: scrapes metrics
- Prometheus → Auth Service: scrapes metrics
- Prometheus → Order Service: scrapes metrics
- Prometheus → Inventory Service: scrapes metrics
- Prometheus → Payment Service: scrapes metrics
- Prometheus Adapter → Prometheus: queries API
- Loki Adapter → Loki: queries logs
