🖥️

Get Hot Threads

Verified

@elastic/get-hot-threads

Get hot threads from nodes for debugging

Usage

RUN SKILL get_hot_threads()

With parameters:

RUN SKILL get_hot_threads WITH node = 'value'

Parameters

NameTypeDefaultDescription
nodeSTRINGNode name or _all

Returns

DOCUMENT— A single document object

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL get_hot_threads()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}