azure-observability

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure Observability Services

Azure可观测性服务

Services

服务

ServiceUse WhenMCP ToolsCLI
Azure MonitorMetrics, alerts, dashboards
azure__monitor
az monitor
Application InsightsAPM, distributed tracing
azure__applicationinsights
az monitor app-insights
Log AnalyticsLog queries, KQL
azure__kusto
az monitor log-analytics
AlertsNotifications, actions-
az monitor alert
WorkbooksInteractive reports
azure__workbooks
-
服务适用场景MCP工具CLI
Azure Monitor指标、告警、仪表板
azure__monitor
az monitor
Application InsightsAPM、分布式追踪
azure__applicationinsights
az monitor app-insights
Log Analytics日志查询、KQL
azure__kusto
az monitor log-analytics
Alerts通知、操作-
az monitor alert
Workbooks交互式报告
azure__workbooks
-

MCP Server (Preferred)

MCP服务器(推荐使用)

When Azure MCP is enabled:
当Azure MCP启用时:

Monitor

监控

  • azure__monitor
    with command
    monitor_metrics_query
    - Query metrics
  • azure__monitor
    with command
    monitor_logs_query
    - Query logs with KQL
  • azure__monitor
    搭配命令
    monitor_metrics_query
    - 查询指标
  • azure__monitor
    搭配命令
    monitor_logs_query
    - 使用KQL查询日志

Application Insights

Application Insights

  • azure__applicationinsights
    with command
    applicationinsights_component_list
    - List App Insights resources
  • azure__applicationinsights
    搭配命令
    applicationinsights_component_list
    - 列出App Insights资源

Log Analytics

Log Analytics

  • azure__kusto
    with command
    kusto_cluster_list
    - List clusters
  • azure__kusto
    with command
    kusto_query
    - Execute KQL queries
If Azure MCP is not enabled: Run
/azure:setup
or enable via
/mcp
.
  • azure__kusto
    搭配命令
    kusto_cluster_list
    - 列出集群
  • azure__kusto
    搭配命令
    kusto_query
    - 执行KQL查询
如果未启用Azure MCP: 运行
/azure:setup
或通过
/mcp
启用。

CLI Reference

CLI参考

bash
undefined
bash
undefined

List 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"
az monitor log-analytics query
--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"
undefined
az monitor metrics list
--resource RESOURCE_ID
--metric "Percentage CPU"
undefined

Common 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 Resource
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 Resource

Monitoring Strategy

监控策略

What to MonitorServiceMetric/Log
Application errorsApp InsightsExceptions, failed requests
PerformanceApp InsightsResponse time, dependencies
InfrastructureAzure MonitorCPU, memory, disk
SecurityLog AnalyticsSign-ins, audit logs
CostsCost ManagementBudget alerts
监控内容服务指标/日志
应用程序错误App Insights异常、失败请求
性能App Insights响应时间、依赖项
基础设施Azure MonitorCPU、内存、磁盘
安全Log Analytics登录、审计日志
成本成本管理预算告警

Service Details

服务详情

For deep documentation on specific services:
如需特定服务的详细文档: