CloudSight-Analyzer is an AI-powered cloud infrastructure monitoring, optimization, and security analysis platform for multi-cloud environments.
Real-time visibility into AWS, Azure, GCP, and hybrid cloud deployments with predictive analytics and intelligent automation.
Managing multi-cloud infrastructure is complex. Organizations struggle with:
- Fragmented visibility across multiple cloud providers
- Cost inefficiency due to unoptimized resources
- Security blind spots from misconfigured services
- Performance degradation without real-time monitoring
- Compliance gaps across hybrid environments
CloudSight-Analyzer solves these challenges by providing a unified, intelligent platform that:
- Aggregates metrics from AWS, Azure, and GCP in real-time
- Uses machine learning to detect anomalies and optimization opportunities
- Provides automated cost recommendations and compliance checking
- Offers predictive insights for capacity planning
- Enables proactive alerting and incident response
- Native Support: AWS, Azure, Google Cloud Platform, hybrid deployments
- Unified Dashboard: Single pane of glass for all cloud resources
- Cross-Cloud Analytics: Correlate metrics across providers
- API Abstraction: Unified API layer for heterogeneous cloud APIs
- Anomaly Detection: ML models identify unusual patterns in resource usage
- Predictive Analytics: Forecast future resource demand and costs
- Intelligent Alerting: Context-aware alerts reduce noise
- Root Cause Analysis: AI-driven insights into performance issues
- Real-Time Cost Tracking: Track spending across all cloud services
- Right-Sizing Recommendations: Identify over/under-provisioned resources
- Reserved Instance Optimization: Suggest best RIs/savings plans
- Cost Anomaly Detection: Alert when spending deviates from baseline
- Chargeback & Allocation: Attribute costs to business units/projects
- Misconfig Detection: Identify security group, IAM, and network issues
- Compliance Scanning: Check against CIS, NIST, ISO 27001, PCI-DSS
- Vulnerability Assessment: Detect exposed resources and weak policies
- Audit Trail: Complete logging of all configurations and changes
- Auto-Remediation: Automated fixes for common security issues
- Real-Time Metrics: CPU, memory, disk, network from all cloud instances
- Custom Dashboards: Build visualizations tailored to your needs
- Distributed Tracing: Trace requests across microservices
- Log Aggregation: Centralized logging from all cloud services
- Alert Management: Configurable thresholds and escalation policies
- Resource Inventory: Comprehensive asset catalog across clouds
- Dependency Mapping: Visualize relationships between resources
- Capacity Planning: Forecast infrastructure needs
- Scalability Analytics: Identify bottlenecks in auto-scaling groups
- Patch Management: Track updates and compliance status
High-level architecture of CloudSight-Analyzer:
flowchart TD
A[User Uploads Cloud Logs or Data] --> B[Frontend Dashboard Interface]
B --> C[Input Validation Layer]
C --> D[API Request to Backend]
D --> E[Backend Server]
E --> F[Data Preprocessing Module]
F --> G[Cloud Analysis Engine]
G --> H[Pattern Detection Module]
G --> I[Anomaly Detection Module]
G --> J[Statistical Analysis Module]
H --> K[Insight Generation Engine]
I --> K
J --> K
K --> L[Structured Analysis Results]
L --> M[Database Storage]
M --> N[Analysis Metadata Records]
L --> O[JSON Response to Frontend]
O --> P[Visualization Layer]
P --> Q[Charts and Graphs]
P --> R[Risk and Insight Panels]
P --> S[Interactive Analytics Dashboard]
Clean, modular organization for CloudSight-Analyzer:
CloudSight-Analyzer/
ββ README.md
ββ LICENSE
ββ requirements.txt
ββ docker-compose.yml
ββ Dockerfile
ββ .dockerignore
β
ββ cloudsight_analyzer/
β ββ __init__.py
β ββ config.py # Configuration management
β ββ utils/
β β ββ logger.py
β β ββ decorators.py
β β ββ validators.py
β β ββ helpers.py
β β
β ββ cloud/
β β ββ base.py # Abstract cloud provider class
β β ββ aws_provider.py # AWS integration
β β ββ azure_provider.py # Azure integration
β β ββ gcp_provider.py # GCP integration
β β ββ provider_factory.py # Factory pattern for providers
β β
β ββ collectors/
β β ββ base_collector.py
β β ββ metrics_collector.py # CPU, memory, disk, network
β β ββ cost_collector.py # Billing and cost data
β β ββ security_collector.py # Security and compliance
β β ββ scheduler.py # Orchestrate collections
β β
β ββ storage/
β β ββ timeseries_db.py # InfluxDB / Prometheus
β β ββ document_db.py # MongoDB for metadata
β β ββ cache.py # Redis caching
β β ββ migrations.py # Database versioning
β β
β ββ analytics/
β β ββ anomaly_detector.py # ML-based anomaly detection
β β ββ cost_optimizer.py # Cost analysis & recommendations
β β ββ compliance_checker.py # CIS, NIST, ISO checks
β β ββ predictor.py # Time-series forecasting
β β ββ models/ # Pre-trained ML models (.pkl, .h5)
β β
β ββ api/
β β ββ main.py # FastAPI application
β β ββ schemas.py # Pydantic models
β β ββ routes/
β β β ββ clouds.py # Cloud provider endpoints
β β β ββ resources.py # Resource management
β β β ββ metrics.py # Metrics & monitoring
β β β ββ costs.py # Cost analysis
β β β ββ security.py # Security & compliance
β β β ββ alerts.py # Alert management
β β β ββ reports.py # Report generation
β β β ββ health.py # System health checks
β β β
β β ββ auth/
β β ββ jwt_handler.py
β β ββ permissions.py
β β
β ββ integrations/
β β ββ slack_notifier.py
β β ββ teams_notifier.py
β β ββ email_sender.py
β β ββ webhook_dispatcher.py
β β ββ siem_connector.py # SIEM (Splunk, ELK) integration
β β
β ββ dashboard/ # (Optional) Streamlit/React frontend
β ββ app.py
β
ββ tests/
β ββ unit/
β β ββ test_aws_provider.py
β β ββ test_metrics_collector.py
β β ββ test_anomaly_detector.py
β β ββ test_cost_optimizer.py
β β
β ββ integration/
β ββ test_api_endpoints.py
β
ββ experiments/
β ββ notebooks/ # Jupyter exploration
β β ββ cost_analysis.ipynb
β β ββ anomaly_tuning.ipynb
β β ββ compliance_audit.ipynb
β β
β ββ results/ # Experiment reports
β
ββ data/
ββ raw/ # Raw cloud API responses (ignored)
ββ processed/ # Cleaned & enriched data
ββ models/ # ML model artifacts
- Services Monitored: EC2, RDS, S3, Lambda, DynamoDB, ECS, EKS, ALB/NLB, CloudFront, and 200+
- Metrics: CPU, memory, disk I/O, network, application-specific
- Cost: Track EC2, RDS, S3, Lambda, compute costs with detailed breakdowns
- Security: IAM policies, security groups, VPC configuration, S3 bucket policies
- Compliance: CIS AWS Foundations Benchmark, PCI-DSS, HIPAA, SOC 2
- Services Monitored: VMs, App Services, SQL Database, Cosmos DB, AKS, Functions, Storage
- Metrics: CPU %, available memory, disk I/O, network throughput
- Cost: Azure consumption-based billing analysis, reserved instance optimization
- Security: Network security groups, IAM roles, encryption status, key vault audit
- Compliance: CIS Azure Foundations, ISO 27001, NIST
- Services Monitored: Compute Engine, GKE, Cloud SQL, Firestore, Cloud Storage, Cloud Functions
- Metrics: VM metrics via Monitoring API, application performance
- Cost: BigQuery-based cost analysis, commitment discounts
- Security: IAM bindings, VPC firewall rules, bucket ACLs
- Compliance: CIS GCP Foundations, PCI-DSS, ISO compliance tracking
- On-Premises Integration: Connect physical servers and VMs
- Cross-Cloud Analytics: Correlate metrics and costs across providers
- Unified Billing: Single pane of glass for all infrastructure costs
Make sure the following are installed:
- Node.js (v18 or later recommended)
- npm (included with Node.js)
- Git (optional, for cloning the repository)
- Docker & Docker Compose (optional, for containerized deployment)
Clone the repository and install all required dependencies.
git clone <repository-url>
cd CloudSight-Analyzer
npm installNote: Since this is a unified full-stack project, the root
package.jsoninstalls both frontend and backend dependencies.
Start both the React frontend and Express backend simultaneously.
npm run dev| Service | URL |
|---|---|
| π Frontend (Vite) | http://localhost:5173 |
| βοΈ Backend API | http://localhost:3000 |
| β€οΈ Health Check | http://localhost:3000/api/health |
The development server includes:
- β‘ Hot Module Replacement (HMR) for React
- π Automatic backend restart with Nodemon
- π Concurrent frontend and backend execution
Generate an optimized production build.
npm run buildPreview the production build locally:
npm run previewThe application works out of the box with sensible defaults.
Create a .env file in the project root if you wish to customize the configuration.
PORT=3000
API_URL=/api| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
Backend server port |
API_URL |
/api |
Base API endpoint |
Build and start the application using Docker Compose.
docker-compose up -d --buildAfter the containers have started:
| Service | URL |
|---|---|
| π Frontend Dashboard | http://localhost:5173 |
| βοΈ Backend API | http://localhost:3000 |
| β€οΈ API Health Check | http://localhost:3000/api/health |
Monitor application logs in real time.
docker-compose logs -fdocker-compose downIf dependencies or configuration change:
docker-compose up -d --buildClone Repository
β
βΌ
npm install
β
βΌ
npm run dev
β
ββββββββββΊ Frontend β http://localhost:5173
β
ββββββββββΊ Backend β http://localhost:3000
β
βββ Health Check β /api/health
Create a file named .dockerignore in the root directory of the project and add the following contents:
node_modules
dist
.env
.git
.gitignore
.idx
README.md
This file prevents unnecessary files and folders from being copied into the Docker build context, resulting in faster builds and smaller Docker images.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/clouds |
List configured clouds |
| POST | /api/v1/clouds |
Register new cloud provider |
| GET | /api/v1/clouds/{id}/resources |
List cloud resources |
| GET | /api/v1/metrics |
Fetch time-series metrics |
| POST | /api/v1/metrics/search |
Advanced metric search |
| GET | /api/v1/costs/summary |
Cost overview |
| GET | /api/v1/costs/recommendations |
Optimization recommendations |
| POST | /api/v1/security/scan |
Run security scan |
| GET | /api/v1/compliance/status |
Compliance status |
| POST | /api/v1/alerts/configure |
Set up alerts |
| GET | /api/v1/reports/list |
List available reports |
| POST | /api/v1/reports/generate |
Generate custom report |
| GET | /api/v1/health |
System health check |
CloudSight-Analyzer includes pre-built Grafana dashboards:
- Cloud Overview: High-level metrics from all providers
- Cost Analytics: Spending trends, forecasting, recommendations
- Security Posture: Compliance status, vulnerabilities, misconfigurations
- Performance Metrics: CPU, memory, disk, network utilization
- Capacity Planning: Resource forecasts and trends
# Access Grafana
http://localhost:3000
# Default credentials
username: admin
password: admin
# Import CloudSight dashboards from:
/grafana/dashboards/| Category | Technologies |
|---|---|
| Core Language | TypeScript |
| Frontend Framework | React 18 |
| Build Tool | Vite |
| Routing | React Router (react-router-dom) |
| Styling | Tailwind CSS |
| UI Components | shadcn/ui, Radix UI |
| Icons | Lucide React |
| Theme Management | Next Themes |
| State Management & Data Fetching | SWR |
| Forms | React Hook Form |
| Validation | Zod, @hookform/resolvers |
| Charts & Analytics | Recharts |
| Animations | Framer Motion |
| Carousel | Embla Carousel |
| Date & Calendar | date-fns, React Day Picker |
| Backend Runtime | Node.js |
| Backend Framework | Express.js |
| Development Server | tsx, Nodemon |
| Middleware | CORS, Dotenv |
| Development Tools | Concurrently |
| Code Quality | ESLint |
| CSS Processing | PostCSS, Autoprefixer |
| Package Manager | npm |
| Version Control | Git, GitHub |
-
Executive Summary
- High-level KPIs
- Cost overview and trends
- Security posture
- Top recommendations
-
Cost Analysis
- Detailed cost breakdown by service
- Month-over-month comparison
- Right-sizing opportunities
- Reserved instance savings
-
Security & Compliance
- Compliance status against frameworks
- Vulnerabilities and misconfigurations
- Remediation status
- Audit trail
-
Performance Report
- Resource utilization metrics
- Bottleneck identification
- Scalability analysis
- Recommendations
# docker-compose.yml - Production configuration
version: '3.9'
services:
cloudsight-api:
image: cloudsight-analyzer:latest
deploy:
replicas: 3
resources:
limits:
cpus: '2'
memory: 4G
environment:
- WORKERS=4
- DATABASE_POOL_SIZE=20
influxdb:
image: influxdb:2.7
volumes:
- influxdb-storage:/var/lib/influxdb2
environment:
- INFLUXDB_DB_RETENTION=30d
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_MAX_CONNECTIONS=200
redis:
image: redis:7-alpine
command: redis-server --maxmemory 2gb --maxmemory-policy allkeys-lru- Caching: Redis caches frequently accessed metrics
- Batch Processing: Bulk inserts for time-series data
- Index Strategy: Optimized database indexes for common queries
- Aggregation: Pre-computed hourly/daily summaries