Elasticsearch 監控插件安裝(elasticsearch-head與Kibana)


摘要

安裝Elasticsearch插件Head與Kibana


版本

elasticsearch版本: elasticsearch-2.3.4

elasticsearch-head版本: 2.x(支持elasticsearch 2.x)

Kibana版本: 4.5(支持elasticsearch 2.3 later)

內容

ElasticSearch-Head

關於ElasticSearch-Head官方介紹比較簡單,只有一句話:

ElasticSearch-Head 是一個與Elastic集群(Cluster)相交互的Web前台。

ES-Head的主要作用

  • 它展現ES集群的拓撲結構,並且可以通過它來進行索引(Index)和節點(Node)級別的操作
  • 它提供一組針對集群的查詢API,並將結果以json和表格形式返回
  • 它提供一些快捷菜單,用以展現集群的各種狀態

安裝

  • 在線安裝

    針對ElasticSearch,我們可以直接通過命令行進行在線插件安裝

    ⇒  sudo elasticsearch/bin/plugin install mobz/elasticsearch-head

    但是可能會出現SSLHandshakeException錯誤

    參考https://github.com/mobz/elasticsearch-head/issues/190給出的解決方法。

    例如:

    bin/plugin --install knapsack --url file:///Full/Path/To/elasticsearch-knapsack-2.1.2.zip
  • 手動安裝

    先到github下載文件 elasticsearch-head-master.zip

    然后通過指定文件路徑來安裝

    ⇒  sudo ./plugin install file:///Users/Richard/Downloads/elasticsearch-head-master.zip

    在2.x之前版本的命令行格式為:

    bin/plugin --install head --url file:///Full/Path/To/elasticsearch-head-master.zip

Kibana 

Kibana 是一個ElasticSearch的管理工具,它也提供了對ES集群操作的API。

 

  • Installing Kibana with yum

Warning

The repositories set up in this procedure are not compatible with distributions using version 3 of rpm, such as CentOS version 5.

  1. Download and install the public signing key:

    rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
  2. Create a file named kibana.repo in the /etc/yum.repos.d/ directory with the following contents:

    [kibana-4.5] name=Kibana repository for 4.5.x packages baseurl=http://packages.elastic.co/kibana/4.5/centos gpgcheck=1 gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch enabled=1
  3. Install Kibana by running the following command:

    yum install kibana

    Configure Kibana to automatically start during bootup. If your distribution is using the System V version of init (check with ps -p 1), run the following command:

    chkconfig --add kibana
  4. If your distribution is using systemd, run the following commands instead:

    sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable kibana.service

That’s it! Kibana is now running on port 5601.

 

  • Install and Start Kibana local

To get Kibana up and running:

  1. Download the Kibana 4 binary package for your platform.
  2. Extract the .zip or tar.gz archive file.
  3. Run Kibana from the install directory: bin/kibana (Linux/MacOSX) or bin\kibana.bat(Windows).

On Unix, you can instead run the package manager suited for your distribution.

關於如何配置,請參考:

http://kibana.logstash.es/content/kibana/v4/setup.html 

 

參考:

elasticsearch-head:

https://github.com/mobz/elasticsearch-head

http://mobz.github.io/elasticsearch-head/

ElasticSearch 2 (6) - 插件安裝Head、Kopf與Bigdesk

elasticsearch集群管理工具head插件

elasticsearch 口水篇(5)es分布式集群初探

Kibana:

Getting Kibana Up and Running


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM