azure-observability
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAzure Observability Services
Azure可观测性服务
Services
服务
| Service | Use When | MCP Tools | CLI |
|---|---|---|---|
| Azure Monitor | Metrics, alerts, dashboards | | |
| Application Insights | APM, distributed tracing | | |
| Log Analytics | Log queries, KQL | | |
| Alerts | Notifications, actions | - | |
| Workbooks | Interactive reports | | - |
| 服务 | 适用场景 | MCP工具 | CLI |
|---|---|---|---|
| Azure Monitor | 指标、告警、仪表板 | | |
| Application Insights | APM、分布式追踪 | | |
| Log Analytics | 日志查询、KQL | | |
| Alerts | 通知、操作 | - | |
| Workbooks | 交互式报告 | | - |
MCP Server (Preferred)
MCP服务器(推荐使用)
When Azure MCP is enabled:
当Azure MCP启用时:
Monitor
监控
- with command
azure__monitor- Query metricsmonitor_metrics_query - with command
azure__monitor- Query logs with KQLmonitor_logs_query
- 搭配命令
azure__monitor- 查询指标monitor_metrics_query - 搭配命令
azure__monitor- 使用KQL查询日志monitor_logs_query
Application Insights
Application Insights
- with command
azure__applicationinsights- List App Insights resourcesapplicationinsights_component_list
- 搭配命令
azure__applicationinsights- 列出App Insights资源applicationinsights_component_list
Log Analytics
Log Analytics
- with command
azure__kusto- List clusterskusto_cluster_list - with command
azure__kusto- Execute KQL querieskusto_query
If Azure MCP is not enabled: Run or enable via .
/azure:setup/mcp- 搭配命令
azure__kusto- 列出集群kusto_cluster_list - 搭配命令
azure__kusto- 执行KQL查询kusto_query
如果未启用Azure MCP: 运行 或通过 启用。
/azure:setup/mcpCLI Reference
CLI参考
bash
undefinedbash
undefinedList Log Analytics workspaces
List Log Analytics workspaces
az monitor log-analytics workspace list --output table
az monitor log-analytics workspace list --output table
Query logs with KQL
Query logs with KQL
az monitor log-analytics query
--workspace WORKSPACE_ID
--analytics-query "AzureActivity | take 10"
--workspace WORKSPACE_ID
--analytics-query "AzureActivity | take 10"
az monitor log-analytics query
--workspace WORKSPACE_ID
--analytics-query "AzureActivity | take 10"
--workspace WORKSPACE_ID
--analytics-query "AzureActivity | take 10"
List Application Insights
List Application Insights
az monitor app-insights component list --output table
az monitor app-insights component list --output table
List alerts
List alerts
az monitor alert list --output table
az monitor alert list --output table
Query metrics
Query metrics
az monitor metrics list
--resource RESOURCE_ID
--metric "Percentage CPU"
--resource RESOURCE_ID
--metric "Percentage CPU"
undefinedaz monitor metrics list
--resource RESOURCE_ID
--metric "Percentage CPU"
--resource RESOURCE_ID
--metric "Percentage CPU"
undefinedCommon KQL Queries
常用KQL查询
kql
// 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 Resourcekql
// 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 ResourceMonitoring 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 |
| 监控内容 | 服务 | 指标/日志 |
|---|---|---|
| 应用程序错误 | App Insights | 异常、失败请求 |
| 性能 | App Insights | 响应时间、依赖项 |
| 基础设施 | Azure Monitor | CPU、内存、磁盘 |
| 安全 | Log Analytics | 登录、审计日志 |
| 成本 | 成本管理 | 预算告警 |
Service Details
服务详情
For deep documentation on specific services:
- Application Insights setup -> skill
appinsights-instrumentation - KQL query patterns -> Log Analytics KQL documentation
- Alert configuration -> Azure Monitor alerts documentation
如需特定服务的详细文档:
- Application Insights 设置 -> 技能
appinsights-instrumentation - KQL查询模式 -> Log Analytics KQL文档
- 告警配置 -> Azure Monitor告警文档