Skip to content

Instantly share code, notes, and snippets.

@yano3
Last active July 5, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yano3/b7e0f4926c30d372af36f8928963eeb3 to your computer and use it in GitHub Desktop.
Save yano3/b7e0f4926c30d372af36f8928963eeb3 to your computer and use it in GitHub Desktop.

moved to https://github.com/yano3/kankara/blob/master/elasticsearch/monitoring.md

Monitoring Elasticsearch

APIs

  • Elasticsearch の様子を知るのに便利な様々な API がある。
  • これらを参照する Elasticsearch プラグインや各種モニタリングツール (mackerel, munin, etc.) のプラグインが開発されている。
  • API 間で重複する内容があったり、似ているようで異なるものがあったりするので使い分けに注意。

cluster health

nodes stats

  • http://localhost:9200/_nodes/stats
  • ドキュメント
  • クラスタを構成するノードの統計情報
  • mackerel の Elasticsearch plugin が参照している
  • 拙作の mackerel-plugin-elasticsearch-nodes-stats もこの API を利用している
  • エンドポイントとして指定したノード以外のクラスタを構成するノードの情報も参照できる
    • 参照したノード自身の情報が欲しい場合は、 URL を http://localhost:9200/_nodes/_local/stats のようにする

cluster stats

  • http://localhost:9200/_cluster/stats
  • ドキュメント
  • クラスタの統計情報(シャードの構成、ノード数など)

indices stats

plugins

Elasticsearch クラスタの様子を知るのに便利なプラグインたち。

head

kopf

Marvel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment