Skill Metrics
DevOps & Securityskill-metricsSkill Metrics is an Agent Skill for devops & security published in the microsoft/azurelinux repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
[Skill] metrics, azure-monitor, aks - Query Azure Monitor metrics for Koji AKS node CPU, memory, disk usage, and pod readiness.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/microsoft/azurelinux/blob/HEAD/.github/skills/skill-metrics/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/skill-metrics, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Koji Azure Monitor Metrics
Tools
| Tool | Purpose |
|---|---|
monitor_metrics_definitions | Discover available metrics for a resource |
monitor_metrics_query | Query metric time-series values |
Key metric namespaces
AKS (Microsoft.ContainerService/managedClusters)
| Metric | Description |
|---|---|
node_cpu_usage_percentage | Node CPU utilization |
node_memory_working_set_percentage | Node memory utilization |
kube_pod_status_ready | Pod readiness count |
node_disk_usage_percentage | Node disk utilization |
Common query patterns
Use aggregation: "Average" and interval: "PT1H" for hourly trends, interval: "PT5M" for granular views.
Example: Query AKS node CPU and memory over the last 24 hours:
resource: AKS cluster name from deployment summarymetric-names:node_cpu_usage_percentage,node_memory_working_set_percentagemetric-namespace:Microsoft.ContainerService/managedClustersaggregation:Averageinterval:PT1H