get_slot_stats
Retrieve per-slot key counts and CPU usage for Valkey 8.0+ instances. Use 'key-count' to find most populated slots or 'cpu-usec' to identify hot slots.
Instructions
Get per-slot key counts and CPU usage (Valkey 8.0+ only). Use orderBy='cpu-usec' to find hot slots, or 'key-count' to find the most populated slots. Returns an error message if not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderBy | No | Sort order: 'key-count' or 'cpu-usec' (default 'key-count') | |
| limit | No | Max slots to return (default 20) | |
| instanceId | No | Optional instance ID override |