👁️

High Cpu Hosts

Verified

@elastic/high-cpu-hosts

Find hosts with high CPU usage

Usage

RUN SKILL high_cpu_hosts()

With parameters:

RUN SKILL high_cpu_hosts WITH index_pattern = 'value', threshold = 0

Parameters

NameTypeDefaultDescription
index_patternSTRINGIndex pattern for metrics data
thresholdINTCPU usage threshold percentage (0-100)

Returns

ARRAY— An array of matching documents

Example

-- 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
  }
}