get_top_consumers
Find top resource consumers by CPU, memory, or disk usage to target capacity planning and performance analysis.
Instructions
[READ] Query resources with highest consumption of a given metric. Then call get_resource_metrics on a returned id for its history.
Returns a paginated envelope: items, returned, limit, total (null when the API reports no size), truncated, hint. Check truncated before calling this the complete set. Resources with no data for the key are left out, not ranked at zero; excluded_no_data counts the ones the ranking API listed with no points, and hint says how many were left out when that shortened the list. Each item's value is the average over the last hour (the number Aria ranks by) and latest_value the most recent point; items are descending by value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | Number of top consumers to return (max 50). Default 10. | |
| target | No | Aria target name from config; default when omitted. | |
| metric_key | No | Metric to rank by, e.g. cpu|usage_average, mem|usage_average, disk|usage_average. | cpu|usage_average |
| resource_kind | No | Resource kind to scope the query. Default VirtualMachine. | VirtualMachine |