Monitoring Stack
SOP:Grafana Dashboard Demo - Windows 11 SOP & Scripts
π Standard Operating Procedure (SOP)
Grafana Monitoring Demo Deployment on Windows 11
Document Information
Version: 1.0
Date: December 2024
Purpose: Complete deployment guide for Grafana monitoring demo
Target OS: Windows 11 (64-bit)
Estimated Time: 30-60 minutes
π― Overview
This SOP provides step-by-step instructions to deploy a comprehensive Grafana monitoring demo with mock data generators for AI models, APM, system metrics, and hardware performance monitoring on Windows 11.
What You'll Get:
β Complete Grafana monitoring stack
β Real-time mock data generation
β Multiple pre-configured dashboards
β Automated alerting system
β Semiconductor AI-specific metrics
π Prerequisites
System Requirements:
Component | Minimum | Recommended |
|---|---|---|
OS | Windows 11 (64-bit) | Windows 11 Pro |
RAM | 8GB | 16GB+ |
Storage | 20GB free | 50GB+ free |
CPU | 4 cores | 8+ cores |
Network | Internet connection | Broadband |
Required Software:
Docker Desktop for Windows (with WSL2 backend)
PowerShell 7+ (recommended)
Git for Windows
Windows Terminal (optional)
π Deployment Methods
Method 1: Quick Start (Recommended for First-Time Users)
Step 1: Download and Prepare
# Open PowerShell as Administrator
# Navigate to your project directory
cd path\to\your\project\demo\grafana-monitoring-demo\scripts
# Set execution policy (if needed)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Step 2: Run Quick Start
# One-command deployment
.\quick-start.ps1
What it does:
β Checks all prerequisites
β Installs missing components
β Deploys the complete demo
β Opens Grafana in browser
Method 2: Manual Step-by-Step (Recommended for Advanced Users)
Step 1: Check Prerequisites
# Check system requirements and installed software
.\install-prerequisites.ps1 -CheckAll
Step 2: Install Missing Components (if needed)
# Install Docker Desktop
.\install-prerequisites.ps1 -InstallDocker
# Install PowerShell 7
.\install-prerequisites.ps1 -InstallPowerShell
# Install Git
.\install-prerequisites.ps1 -InstallGit
Step 3: Deploy Demo
# Start the complete monitoring stack
.\deploy-demo-enhanced.ps1 -Start
Step 4: Verify Deployment
# Check service status
.\deploy-demo-enhanced.ps1 -Status
# Run health check
.\deploy-demo-enhanced.ps1 -Health
π§ Management Commands
Basic Operations:
# Start demo
.\deploy-demo-enhanced.ps1 -Start
# Stop demo (preserve data)
.\deploy-demo-enhanced.ps1 -Stop
# Stop and clean all data
.\deploy-demo-enhanced.ps1 -Stop -Clean
# Restart demo
.\deploy-demo-enhanced.ps1 -Restart
# Complete reset
.\deploy-demo-enhanced.ps1 -Reset
Monitoring Commands:
# Check service status
.\deploy-demo-enhanced.ps1 -Status
# View all logs
.\deploy-demo-enhanced.ps1 -Logs
# View specific service logs
.\deploy-demo-enhanced.ps1 -Logs -Service grafana
# Health check
.\deploy-demo-enhanced.ps1 -Health
π Access Information
Service URLs:
Service | URL | Credentials |
|---|---|---|
Grafana | admin / admin | |
Prometheus | None | |
InfluxDB | admin / password123 | |
AlertManager | None |
Port Usage:
Port | Service | Purpose |
|---|---|---|
3000 | Grafana | Main dashboard |
9090 | Prometheus | Metrics collection |
8086 | InfluxDB | Time series database |
5432 | PostgreSQL | Metadata storage |
6379 | Redis | Caching |
9093 | AlertManager | Alert management |
9100 | Node Exporter | System metrics |
8080 | cAdvisor | Container metrics |
π Available Dashboards
1. AI Model Performance Dashboard
Features:
Model accuracy trends
Inference latency monitoring
Drift detection
Training job status
Feature importance tracking
2. Hardware Performance Dashboard
Features:
CPU, Memory, GPU utilization
Equipment temperature monitoring
Power consumption tracking
Network and disk I/O
3. System Overview Dashboard
Features:
Service health status
Resource utilization heatmaps
Active alerts monitoring
Container performance
4. Application Performance Dashboard
Features:
API response times
Error rate monitoring
Database performance
Service dependencies
π Demo Scenarios
Scenario 1: Normal Operations
All services healthy (green status)
AI models performing within thresholds
Hardware utilization normal
No active alerts
Scenario 2: Performance Issues
Increased response times
Model accuracy drift
High CPU/memory usage
Warning alerts triggered
Scenario 3: Critical Issues
Service failures
Model prediction errors
Hardware resource exhaustion
Critical alerts and notifications
Scenario 4: Recovery
Services returning to normal
Model retraining completion
Resource utilization stabilizing
Alert resolution
π Troubleshooting Guide
Common Issues and Solutions:
Issue 1: Docker Not Starting
# Check Docker Desktop status
docker --version
docker info
# Solution: Restart Docker Desktop
# 1. Close Docker Desktop
# 2. Restart as Administrator
# 3. Enable WSL2 integration
Issue 2: Port Conflicts
# Check port usage
netstat -an | findstr :3000
# Solution: Stop conflicting services
# Or change ports in docker-compose.yml
Issue 3: Services Not Healthy
# Check service logs
.\deploy-demo-enhanced.ps1 -Logs -Service grafana
# Check container status
docker-compose ps
# Solution: Restart specific service
docker-compose restart grafana
Issue 4: Memory Issues
# Check system resources
Get-CimInstance Win32_OperatingSystem | Select TotalVisibleMemorySize, FreePhysicalMemory
# Solution:
# 1. Close unnecessary applications
# 2. Increase Docker memory allocation
# 3. Use -Clean flag to free resources
Issue 5: Build Failures
# Clean Docker cache
docker system prune -af
# Rebuild from scratch
.\deploy-demo-enhanced.ps1 -Reset
.\deploy-demo-enhanced.ps1 -Start
Log Locations:
Docker Compose Logs:
docker-compose logsIndividual Service Logs:
docker-compose logs <service-name>Windows Event Logs: Event Viewer β Applications and Services
π Performance Optimization
System Optimization:
Enable WSL2 Backend in Docker Desktop
Allocate Sufficient Resources:
Memory: 8GB minimum
CPU: 4+ cores
Disk: 50GB+ free space
Windows Settings:
Disable unnecessary startup programs
Enable High Performance power plan
Disable Windows Defender real-time scanning for project folder
Docker Optimization:
# Increase Docker resources in Docker Desktop:
# Settings β Resources β Advanced
# - Memory: 8GB+
# - CPU: 4+ cores
# - Disk image size: 100GB+
π Security Considerations
Default Credentials (Change in Production):
Grafana: admin/admin
InfluxDB: admin/password123
Network Security:
Services bound to localhost only
No external network exposure by default
Use Windows Firewall for additional protection
Data Security:
All data stored in Docker volumes
Use
-Cleanflag to remove sensitive dataRegular backup of dashboard configurations
π Additional Resources
Documentation Links:
Support Commands:
# Get help for any script
.\deploy-demo-enhanced.ps1 -Help
.\install-prerequisites.ps1 -Help
.\quick-start.ps1 -Help
# Check script version
Get-Content .\deploy-demo-enhanced.ps1 | Select-String "Version"
β Deployment Checklist
Pre-Deployment:
[ ] Windows 11 system meets requirements
[ ] Administrator privileges available
[ ] Internet connection active
[ ] Required ports available (3000, 9090, 8086, etc.)
[ ] Docker Desktop installed and running
During Deployment:
[ ] Prerequisites check passed
[ ] Docker images pulled successfully
[ ] Services started without errors
[ ] Health checks passed
[ ] Grafana accessible at http://localhost:3000
Post-Deployment:
[ ] All dashboards loading correctly
[ ] Mock data generating properly
[ ] Alerts configured and working
[ ] Performance acceptable
[ ] Documentation reviewed
Cleanup (When Done):
[ ] Demo stopped:
.\deploy-demo-enhanced.ps1 -Stop[ ] Data cleaned:
.\deploy-demo-enhanced.ps1 -Clean[ ] Docker resources freed:
docker system prune -f
π Support Information
Getting Help:
Check Logs: Use
-Logsflag for detailed error informationHealth Check: Use
-Healthflag for comprehensive statusReset Demo: Use
-Resetflag for clean slateDocumentation: Review README.md and configuration files
Common Commands Summary:
# Quick deployment
.\quick-start.ps1
# Manual deployment
.\deploy-demo-enhanced.ps1 -Start
# Check status
.\deploy-demo-enhanced.ps1 -Status
# View logs
.\deploy-demo-enhanced.ps1 -Logs
# Stop and cleanup
.\deploy-demo-enhanced.ps1 -Stop -Clean
End of SOP Document
This document should be updated as the demo evolves and new features are added.
Here's a professionally structured, clean, and comprehensive Markdown document for "Grafana Dashboard Demo β Windows 11 SOP & Scripts", with all content organized for clarity, technical accuracy, and ease of use.
π Grafana Dashboard Demo
Standard Operating Procedure (SOP) for Windows 11 Deployment
A complete, self-contained monitoring demo for the semiconductor AI ecosystem, optimized for Windows 11 with automated PowerShell scripts, pre-configured dashboards, and realistic mock data.
This guide enables one-click deployment of a full-stack monitoring environment including Grafana, Prometheus, InfluxDB, and AlertManager, with semiconductor-specific dashboards and alerts.
β No prior setup needed | π» Windows 11 optimized | π Fully automated
π― Prerequisites Checklist
System Requirements
Requirement | Minimum | Recommended |
|---|---|---|
Operating System | Windows 11 (64-bit) | Windows 11 22H2+ |
RAM | 16 GB | 32 GB |
Disk Space | 50 GB free | 100 GB SSD/NVMe |
Internet Connection | Required for Docker image download | Stable broadband |
Required Software
Software | Purpose |
|---|---|
Docker Desktop for Windows | Container orchestration (must use WSL2 backend) |
PowerShell 7+ | Script execution (Windows PowerShell not recommended) |
Windows Terminal (Optional) | Enhanced terminal experience |
Git for Windows | Clone or manage repository (if not already included) |
π‘ All scripts are designed to check and install missing components automatically.
π Step-by-Step Installation Guide
Step 1: Install Docker Desktop
Run the prerequisite checker and installer:
.\install-prerequisites.ps1 -CheckAll
Install Docker if not present:
.\install-prerequisites.ps1 -InstallDocker
β οΈ After installation, restart your machine and ensure WSL2 is enabled.
Step 2: Deploy the Monitoring Stack
Start the full monitoring environment:
.\deploy-demo-enhanced.ps1 -Start
Check deployment status:
.\deploy-demo-enhanced.ps1 -Status
View logs (optional):
.\deploy-demo-enhanced.ps1 -Logs
Step 3: Validate Deployment
Run automated validation:
.\validate-deployment.ps1
Quick health check:
.\deploy-demo-enhanced.ps1 -Health
β Output will confirm:
All containers are running
Services are reachable
Dashboards are accessible
Step 4: Access Dashboards
Once deployed, open the following URLs in your browser:
Service | URL | Credentials |
|---|---|---|
Grafana |
|
|
Prometheus |
| No authentication |
InfluxDB |
|
|
AlertManager |
| No authentication |
π Grafana comes with pre-loaded dashboards β no manual import needed.
π¦ Available Scripts
Script | Purpose | Usage Example |
|---|---|---|
| One-click setup and deploy |
|
| Install Docker, PowerShell 7, etc. |
|
| Full lifecycle management |
|
| Verify system health and connectivity |
|
π All scripts are located in:
demo/grafana-monitoring-demo/scripts/
π Management Commands
Use deploy-demo-enhanced.ps1 for all operational tasks:
Command | Action |
|---|---|
| Start all services |
| Stop services (data preserved) |
| Stop and delete containers & volumes |
| Restart the stack |
| Complete reset (clean + redeploy) |
| View combined logs |
| View logs for a specific service |
π What You Get
Complete Monitoring Stack
Component | Function |
|---|---|
Grafana | Visualization and dashboarding |
Prometheus | Metrics collection and alerting |
InfluxDB | Time-series storage for high-frequency data |
AlertManager | Alert routing and notification |
Mock Data Generators | Simulated semiconductor AI and system metrics |
Pre-Configured Dashboards
All dashboards are automatically loaded at startup:
Dashboard | Content |
|---|---|
AI Model Performance | Accuracy, latency, drift, prediction volume |
Hardware Performance | CPU, GPU, memory, temperature (simulated) |
System Overview | Host metrics, network, disk I/O |
Application Performance (APM) | Request rate, error rate, response time |
π§© Ideal for showcasing model observability, system health, and real-time monitoring.
Mock Data Generators
Simulates realistic semiconductor AI ecosystem data:
Data Type | Simulation |
|---|---|
AI Model Metrics | Prediction accuracy, drift, confidence scores |
Hardware Performance | CPU/GPU utilization, temperature, fan speed |
System Resources | Memory, disk, network usage |
Application Data | API request rate, latency, errors |
Process Parameters | RF power, chamber pressure, temperature (semiconductor context) |
π Data patterns mimic real fab environments β perfect for demos and training.
Automated Alerting
Pre-configured alerts for:
π΄ Model accuracy drop (>10% from baseline)
π High system resource usage (CPU > 90%)
πΊ Hardware temperature threshold exceeded
β οΈ Service downtime or unreachable
Alerts appear in AlertManager and are visualized in Grafana.
π§ Troubleshooting
If deployment fails or services donβt start:
# Full reset
.\deploy-demo-enhanced.ps1 -Reset
# Validate post-reset
.\validate-deployment.ps1
# Check logs for errors
.\deploy-demo-enhanced.ps1 -Logs
Common Issues & Fixes
Issue | Solution |
|---|---|
Docker not starting | Ensure WSL2 is installed and enabled |
Port 3000 in use | Close conflicting apps (e.g., another Grafana) |
Slow image download | Wait or use a faster network |
PowerShell execution policy error | Run: |
Permission denied | Run PowerShell as Administrator |
β Final Notes
The demo is fully offline-capable after initial Docker image download
All data is ephemeral by default (safe for repeated demos)
Easily extendable β add your own dashboards or data sources
No internet required after setup
π Conclusion
This Grafana Dashboard Demo is now:
β Completely independent
π» Optimized for Windows 11
π Ready for immediate presentation
π Packed with semiconductor-relevant content
It provides a professional, realistic, and interactive experience for showcasing monitoring, observability, and AI system health β ideal for executive demos, training, and stakeholder reviews.
π Files Created:
install-prerequisites.ps1
deploy-demo-enhanced.ps1
quick-start.ps1
validate-deployment.ps1
SOP-Windows11-Deployment.mdUpdated
Dockerfile,requirements.txt, and mock data generators