This content originally appeared on DEV Community and was authored by Y.C Lee
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 | http://localhost:3000 | admin / admin |
Prometheus | http://localhost:9090 | None |
InfluxDB | http://localhost:8086 | admin / password123 |
AlertManager | http://localhost:9093 | 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
- URL: http://localhost:3000/d/ai-models/
-
Features:
- Model accuracy trends
- Inference latency monitoring
- Drift detection
- Training job status
- Feature importance tracking
2. Hardware Performance Dashboard
- URL: http://localhost:3000/d/hardware/
-
Features:
- CPU, Memory, GPU utilization
- Equipment temperature monitoring
- Power consumption tracking
- Network and disk I/O
3. System Overview Dashboard
- URL: http://localhost:3000/d/system/
-
Features:
- Service health status
- Resource utilization heatmaps
- Active alerts monitoring
- Container performance
4. Application Performance Dashboard
- URL: http://localhost:3000/d/apm/
-
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 logs
-
Individual 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
-Clean
flag to remove sensitive data - Regular 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
-Logs
flag for detailed error information -
Health Check: Use
-Health
flag for comprehensive status -
Reset Demo: Use
-Reset
flag for clean slate - Documentation: 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 | http://localhost:3000 |
admin / admin (change on first login) |
Prometheus | http://localhost:9090 |
No authentication |
InfluxDB | http://localhost:8086 |
admin / password123
|
AlertManager | http://localhost:9093 |
No authentication |
Grafana comes with pre-loaded dashboards — no manual import needed.
Available Scripts
Script | Purpose | Usage Example |
---|---|---|
quick-start.ps1 |
One-click setup and deploy | .\quick-start.ps1 |
install-prerequisites.ps1 |
Install Docker, PowerShell 7, etc. | .\install-prerequisites.ps1 -InstallDocker |
deploy-demo-enhanced.ps1 |
Full lifecycle management | .\deploy-demo-enhanced.ps1 -Start |
validate-deployment.ps1 |
Verify system health and connectivity | .\validate-deployment.ps1 |
All scripts are located in:
demo/grafana-monitoring-demo/scripts/
Management Commands
Use deploy-demo-enhanced.ps1
for all operational tasks:
Command | Action |
---|---|
.\deploy-demo-enhanced.ps1 -Start |
Start all services |
.\deploy-demo-enhanced.ps1 -Stop |
Stop services (data preserved) |
.\deploy-demo-enhanced.ps1 -Stop -Clean |
Stop and delete containers & volumes |
.\deploy-demo-enhanced.ps1 -Restart |
Restart the stack |
.\deploy-demo-enhanced.ps1 -Reset |
Complete reset (clean + redeploy) |
.\deploy-demo-enhanced.ps1 -Logs |
View combined logs |
.\deploy-demo-enhanced.ps1 -Logs -Service grafana |
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: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
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.md
- Updated
Dockerfile
,requirements.txt
, and mock data generators
This content originally appeared on DEV Community and was authored by Y.C Lee