Get add-on resource stats
supervisor_get_addon_statsFetch an add-on's current CPU, memory, network, and disk I/O usage to check whether it is consuming unexpected resources. Returns only a snapshot, not historical trends.
Instructions
Get an add-on's current runtime resource usage.
Calls GET /addons/<slug>/stats for CPU, memory, network and disk I/O
figures at the moment of the call.
Use when: checking whether an add-on is consuming unexpected resources.
Not for: historical usage over time — this returns only a snapshot.
Returns: Supervisor's raw stats payload (CPU percent, memory
usage/limit, network and block I/O counters).
Errors: {"error": "invalid_slug"} for a bad slug; {"error": "SUPERVISOR_TOKEN not set — Nexus must run as HA add-on for Supervisor API"} when the token env var is missing;
{"error": "HTTP <status>", "detail": ...} if the add-on is not
running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Add-on slug to fetch stats for, e.g. from `supervisor_list_addons`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||