How azure-samples/azure-monitor-lab works
Azure Monitor Lab is a demo environment with two complementary user paths: guided scenarios and a web Control Center. In the sampled runtime, the Control Center serves agent demonstrations, infrastructure health, approved lab operations, and an SRE MCP assistant; the separate AI workload provisions Foundry agents and generates traced traffic. The README also documents broad monitoring, deployment, and optional Sentinel capabilities, but their infrastructure implementation is outside the supplied tree excerpt. Edges are limited to calls and flows shown in excerpts or documented by the README; unsampled wiring is omitted.
Main entry points: Program.cs Console API · LabOperationsService.cs Approval workflow · InfrastructureHealthService.cs Infrastructure health · SreAssistant.cs SRE assistant
Components 26
User entrypoints
- Guided scenarios
Control Center
- Control Center UI
workloads/webapp/frontend/agents.js - Console API
workloads/webapp/Program.cs - Agent playground
workloads/webapp/AgentPlayground.cs - Observability scenarios
workloads/webapp/AgentObservabilityScenarios.cs - Infrastructure health
workloads/webapp/InfrastructureHealthService.cs - Telemetry queries
workloads/webapp/InfrastructureHealthQueries.cs
Lab operations
- Operations view
workloads/webapp/frontend/lab-operations.js - Approval workflow
workloads/webapp/LabOperationsService.cs - Operation catalog
workloads/webapp/LabOperationCatalog.cs - Runner target validation
workloads/webapp/ContainerJobTarget.cs - Container job runner
workloads/webapp/ContainerJobOperations.cs - Run journal
workloads/webapp/LabOperationsJournal.cs
SRE assistant
- SRE assistant view
workloads/webapp/frontend/sre-assistant.js - SRE assistant
workloads/webapp/SreAssistant.cs - Model tools
workloads/webapp/SreModel.cs - MCP client
workloads/webapp/SreMcpClient.cs - MCP runtime
workloads/webapp/SreMcpRuntime.cs
AI workload
- Foundry agent setup
workloads/ai/create_agents.py - Agent traffic generator
workloads/ai/simulate_traffic.py
Other components
- Lab user
- Azure resources
- Azure Monitor
- Azure SRE Agent
- Microsoft Foundry
- AI telemetry
Connections 27
- Lab user → Guided scenarios: follows walkthroughs
- Lab user → Control Center UI: uses
- Control Center UI → Console API: calls APIs
workloads/webapp/frontend/agents.js - Console API → Agent playground: runs agents
workloads/webapp/Program.cs - Console API → Observability scenarios: serves scenarios
workloads/webapp/Program.cs - Console API → Infrastructure health: checks health
workloads/webapp/Program.cs - Infrastructure health → Telemetry queries: builds queries
workloads/webapp/InfrastructureHealthService.cs - Infrastructure health → Azure resources: reads inventory
workloads/webapp/InfrastructureHealthService.cs - Infrastructure health → Azure Monitor: queries telemetry
workloads/webapp/InfrastructureHealthService.cs - Lab user → Operations view: requests operations
- Operations view → Console API: calls APIs
- Console API → Approval workflow: handles operations
workloads/webapp/Program.cs - Approval workflow → Operation catalog: validates choices
workloads/webapp/LabOperationsService.cs - Approval workflow → Runner target validation: uses validated target
workloads/webapp/LabOperationsService.cs - Approval workflow → Container job runner: dispatches approved run
workloads/webapp/LabOperationsService.cs - Approval workflow → Run journal: records run state
workloads/webapp/LabOperationsService.cs - Container job runner → Azure resources: runs container job
workloads/webapp/ContainerJobOperations.cs - Lab user → SRE assistant view: asks questions
- SRE assistant view → Console API: calls APIs
- Console API → SRE assistant: routes requests
workloads/webapp/Program.cs - SRE assistant → Model tools: uses model
- SRE assistant → MCP client: lists and calls tools
workloads/webapp/SreAssistant.cs - MCP client → MCP runtime: prepares runtime
workloads/webapp/SreMcpClient.cs - MCP client → Azure SRE Agent: calls tools
- Foundry agent setup → Microsoft Foundry: creates agents
workloads/ai/create_agents.py - Agent traffic generator → Microsoft Foundry: runs agents
workloads/ai/simulate_traffic.py - Agent traffic generator → AI telemetry: exports traces
workloads/ai/simulate_traffic.py