elasticsearch_monitoring_cheatsheet
elasticsearch_monitoring_cheatsheet
Note:
ʒʒ Windows users should download cURL to use the commands below.
ʒʒ Some commands require jq to parse JSON for relevant metrics.
ʒʒ For more info, visit dtdg.co/monitoring-elasticsearch
General monitoring API endpoints Thread pool queues & rejections—more info
METRIC DESCRIPTION COMMAND METRIC DESCRIPTION COMMAND
Stats from all nodes curl 'localhost:9200/_nodes/stats' Number of queued threads in a thread pool curl 'localhost:9200/_nodes/stats/thread_pool' | jq '.nodes[]
| {node_name: .name, bulk_queue: .thread_pool.bulk.queue,
Stats from specific nodes curl 'localhost:9200/_nodes/
node1,node2/stats' search_queue: .thread_pool.search.queue, index_queue:
Stats from a specific index curl 'localhost:9200/<INDEX_NAME>/_stats' .thread_pool.index.queue}'
Pending tasks
METRIC DESCRIPTION COMMAND
Number of pending tasks curl 'localhost:9200/_cluster/pending_tasks'
Cheatsheet: Elasticsearch Tuning
Note:
ʒʒ Windows users should download cURL to use the commands below.
Results of each suggested action may vary depending on your particular use case and setup.
Please test them out before implementing in production. For more info, visit dtdg.co/tuning-elasticsearch
5. Pending tasks
METRIC DESCRIPTION DATADOG METRIC NAME
Number of pending tasks elasticsearch.pending_tasks_total
Datadog's out-of-the-box screenboard. Sections 1-8 correspond to the metric categories outlined below. Number of times the fielddata circuit breaker elasticsearch.breakers.fielddata.tripped
has been tripped (ES version >=1.3)
METRIC DESCRIPTION DATADOG METRIC NAME Logs /var/log /var/log <ELASTICSEARCH INSTALLATION HOME
↳/elasticsearch ↳/elasticsearch DIRECTORY>/logs
Total number of documents indexed elasticsearch.indexing.index.total
Data /var/lib /var/lib <ELASTICSEARCH INSTALLATION HOME
Total time spent indexing documents (s) elasticsearch.indexing.index.time ↳/elasticsearch ↳/elasticsearch DIRECTORY>/data
↳/data
Number of documents currently being indexed elasticsearch.indexing.index.current
Total number of index flushes to disk elasticsearch.flush.total
Total time spent on flushing indices to disk (s) elasticsearch.flush.total.time