azure-observabilityby Azure
Azure Observability Services including Azure Monitor, Application Insights, Log Analytics, Alerts, and Workbooks. Provides metrics, APM, distributed tracing, KQL queries, and interactive reports.
npx skills add https://github.com/microsoft/GitHub-Copilot-for-Azure --skill azure-observabilityAzure Observability Services
Services
| Service | Use When | MCP Tools | CLI |
|---|---|---|---|
| Azure Monitor | Metrics, alerts, dashboards | azure__monitor | az monitor |
| Application Insights | APM, distributed tracing | azure__applicationinsights | az monitor app-insights |
| Log Analytics | Log queries, KQL | azure__kusto | az monitor log-analytics |
| Alerts | Notifications, actions | - | az monitor alert |
| Workbooks | Interactive reports | azure__workbooks | - |
MCP Server (Preferred)
When Azure MCP is enabled:
Monitor
azure__monitorwith commandmonitor_metrics_query- Query metricsazure__monitorwith commandmonitor_logs_query- Query logs with KQL
Application Insights
azure__applicationinsightswith commandapplicationinsights_component_list- List App Insights resources
Log Analytics
azure__kustowith commandkusto_cluster_list- List clustersazure__kustowith commandkusto_query- Execute KQL queries
If Azure MCP is not enabled: Run /azure:setup or enable via /mcp.
CLI Reference
# List Log Analytics workspaces
az monitor log-analytics workspace list --output table
# Query logs with KQL
az monitor log-analytics query \
--workspace WORKSPACE_ID \
--analytics-query "AzureActivity | take 10"
# List Application Insights
az monitor app-insights component list --output table
# List alerts
az monitor alert list --output table
# Query metrics
az monitor metrics list \
--resource RESOURCE_ID \
--metric "Percentage CPU"
Common KQL Queries
// Recent errors
AppExceptions
| where TimeGenerated > ago(1h)
| project TimeGenerated, Message, StackTrace
| order by TimeGenerated desc
// Request performance
AppRequests
| where TimeGenerated > ago(1h)
| summarize avg(DurationMs), count() by Name
| order by avg_DurationMs desc
// Resource usage
AzureMetrics
| where TimeGenerated > ago(1h)
| where MetricName == "Percentage CPU"
| summarize avg(Average) by Resource
Monitoring Strategy
| What to Monitor | Service | Metric/Log |
|---|---|---|
| Application errors | App Insights | Exceptions, failed requests |
| Performance | App Insights | Response time, dependencies |
| Infrastructure | Azure Monitor | CPU, memory, disk |
| Security | Log Analytics | Sign-ins, audit logs |
| Costs | Cost Management | Budget alerts |
SDK Quick References
For programmatic access to monitoring services, see the condensed SDK guides:
- OpenTelemetry: Python | TypeScript | Python Exporter
- Monitor Query: Python | Java
- Log Ingestion: Python | Java
- App Insights Mgmt: .NET
Service Details
For deep documentation on specific services:
- Application Insights setup ->
appinsights-instrumentationskill - KQL query patterns -> Log Analytics KQL documentation
- Alert configuration -> Azure Monitor alerts documentation
More skills from Azure
azure-ai
by Azure
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR.
appinsights-instrumentation
by Azure
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references.
azure-aigateway
by Azure
Configure Azure API Management (APIM) as AI Gateway to secure, observe, control AI models, MCP servers, agents. Helps with rate limiting, semantic caching, content safety, load balancing.
azure-compliance
by Azure
Comprehensive Azure compliance and security auditing capabilities including best practices assessment, Key Vault expiration monitoring, and resource configuration validation.
azure-compute
by Azure
Recommend Azure VM sizes, VM Scale Sets (VMSS), and configurations based on workload requirements, performance needs, and budget constraints.
azure-cost-optimization
by Azure
Identify and quantify cost savings across Azure subscriptions by analyzing actual costs, utilization metrics, and generating actionable optimization recommendations.
azure-deploy
by Azure
Execute deployment to Azure. Final step after preparation and validation. Runs azd up, azd deploy, or infrastructure provisioning commands.
azure-diagnostics
by Azure
Debug and troubleshoot production issues on Azure. Covers Container Apps and Function Apps diagnostics, log analysis with KQL, health checks, and common issue resolution.