azure-observability by microsoft/github-copilot-for-azure
npx skills add https://github.com/microsoft/github-copilot-for-azure --skill azure-observability| 服务 | 适用场景 | MCP 工具 | CLI |
|---|---|---|---|
| Azure Monitor | 指标、警报、仪表板 | azure__monitor | az monitor |
| Application Insights | APM、分布式追踪 | azure__applicationinsights | az monitor app-insights |
| Log Analytics | 日志查询、KQL | azure__kusto |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
暂无相关 Skills
az monitor log-analytics |
| Alerts | 通知、操作 | - | az monitor alert |
| Workbooks | 交互式报告 | azure__workbooks | - |
启用 Azure MCP 后:
azure__monitor 配合命令 monitor_metrics_query - 查询指标azure__monitor 配合命令 monitor_logs_query - 使用 KQL 查询日志azure__applicationinsights 配合命令 applicationinsights_component_list - 列出 Application Insights 资源azure__kusto 配合命令 kusto_cluster_list - 列出集群azure__kusto 配合命令 kusto_query - 执行 KQL 查询如果未启用 Azure MCP: 运行 /azure:setup 或通过 /mcp 启用。
# 列出 Log Analytics 工作区
az monitor log-analytics workspace list --output table
# 使用 KQL 查询日志
az monitor log-analytics query \
--workspace WORKSPACE_ID \
--analytics-query "AzureActivity | take 10"
# 列出 Application Insights
az monitor app-insights component list --output table
# 列出警报
az monitor alert list --output table
# 查询指标
az monitor metrics list \
--resource RESOURCE_ID \
--metric "Percentage CPU"
// 近期错误
AppExceptions
| where TimeGenerated > ago(1h)
| project TimeGenerated, Message, StackTrace
| order by TimeGenerated desc
// 请求性能
AppRequests
| where TimeGenerated > ago(1h)
| summarize avg(DurationMs), count() by Name
| order by avg_DurationMs desc
// 资源使用情况
AzureMetrics
| where TimeGenerated > ago(1h)
| where MetricName == "Percentage CPU"
| summarize avg(Average) by Resource
| 监控内容 | 服务 | 指标/日志 |
|---|---|---|
| 应用程序错误 | App Insights | 异常、失败的请求 |
| 性能 | App Insights | 响应时间、依赖项 |
| 基础设施 | Azure Monitor | CPU、内存、磁盘 |
| 安全性 | Log Analytics | 登录、审计日志 |
| 成本 | 成本管理 | 预算警报 |
要编程访问监控服务,请参阅简明的 SDK 指南:
有关特定服务的详细文档:
appinsights-instrumentation 技能每周安装量
102.2K
代码仓库
GitHub Stars
143
首次出现
Jan 29, 2026
安全审计
安装于
github-copilot102.2K
codex328
gemini-cli319
opencode309
cursor299
kimi-cli294
| 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 skillWeekly Installs
102.2K
Repository
GitHub Stars
143
First Seen
Jan 29, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot102.2K
codex328
gemini-cli319
opencode309
cursor299
kimi-cli294