🖥️

Get Node Stats

Verified

@elastic/get-node-stats

Get detailed statistics for a specific node

Usage

RUN SKILL get_node_stats()

With parameters:

RUN SKILL get_node_stats WITH node_name = 'value'

Parameters

NameTypeDefaultDescription
node_nameSTRINGNode name to get stats for

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_node_stats()"}'

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