elasticsearch/es-node-stats

Node Stats

Get stats for all nodes

elasticsearch
node
stats

Command

curl -X GET 'http://localhost:9200/_nodes/stats?pretty'

Explanation

Displays detailed statistics for each node, including CPU, memory, file descriptors, cache usage, and indexing performance metrics.

Common Use Cases

  • Monitoring node-level performance
  • Diagnosing resource bottlenecks
  • Comparing performance across nodes

Best Practices

  • Use node stats to balance indexing load across the cluster
  • Monitor JVM memory to prevent OutOfMemory errors

Common Mistakes to Avoid

  • Not specifying node name when targeting a specific node
  • Misinterpreting I/O metrics without considering workload type

Troubleshooting

Problem: Node CPU spikes

Solution: Inspect indexing or query workload; use slow log analysis.

Problem: Low disk space warning

Solution: Increase storage or use index lifecycle management (ILM) to remove old data.

Examples

Stats for specific node

curl -X GET 'http://localhost:9200/_nodes/es-node1/stats?pretty'