by microsoft
此技能为 Claude 提供 Azure 监控服务、Application Insights、日志分析、KQL 查询和 SDK 参考知识,用于在 Azure 应用程序中实现全栈可观测性。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 azure-observability 技能" 开始使用
=== azure-observability 技能 === 作者: microsoft 描述: 此技能为 Claude 提供 Azure 监控服务、Application Insights、日志分析、KQL 查询和 SDK 参考知识,用于在 Azure 应用程序中实现全栈可观测性。 使用方法: 1. 调用技能: "使用 azure-observability 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 azure-observability 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
| 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 | - |
When Azure MCP is enabled:
azure__monitor with command monitor_metrics_query - Query metricsazure__monitor with command monitor_logs_query - Query logs with KQLazure__applicationinsights with command applicationinsights_component_list - List App Insights resourcesazure__kusto with command kusto_cluster_list - List clustersazure__kusto with command kusto_query - Execute KQL queriesIf Azure MCP is not enabled: Run /azure:setup or enable via /mcp.
# 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"
// 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
| 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 |
For programmatic access to monitoring services, see the condensed SDK guides:
For deep documentation on specific services:
appinsights-instrumentation skillView Count
0
Download Count
0
Favorite Count
0
Quality Score
70