搜索

PythonReactSEOPDF
GitHub Skill

azure-observability

Azure Observability Services including Azure Monitor, Application Insights, Log Analytics, Alerts, and Workbooks. Provides metrics, APM, distributed tracing, KQL queries, and interactive reports.

microsoft☆ 1,663 仓库 Stars172 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Azure 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__monitor with command monitor_metrics_query - Query metrics
  • azure__monitor with command monitor_logs_query - Query logs with KQL
Application Insights
  • azure__applicationinsights with command applicationinsights_component_list - List App Insights resources
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.

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:

Service Details

For deep documentation on specific services:

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!