@elastic/high-cpu-hosts
Find hosts with high CPU usage
RUN SKILL high_cpu_hosts()With parameters:
RUN SKILL high_cpu_hosts WITH index_pattern = 'value', threshold = 0| Name | Type | Default | Description |
|---|---|---|---|
| index_pattern | STRING | — | Index pattern for metrics data |
| threshold | INT | — | CPU usage threshold percentage (0-100) |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL high_cpu_hosts()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}