# Skill Metrics

> Skill 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.

- Skill name: `skill-metrics`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/microsoft/azurelinux/blob/HEAD/.github/skills/skill-metrics/SKILL.md
- Repository: microsoft/azurelinux (5,278 GitHub stars when collected)

## SKILL.md

# 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 summary
- `metric-names`: `node_cpu_usage_percentage,node_memory_working_set_percentage`
- `metric-namespace`: `Microsoft.ContainerService/managedClusters`
- `aggregation`: `Average`
- `interval`: `PT1H`

---

Source: https://www.openparable.com/skill/devops-security/skill-metrics (OpenParable). Cite the canonical URL above.
