安装指导及使用简介
1. 下载安装包:
2. 将安装包copy到ECS节点,该节点网络和待监控的ES集群在同一VPC,网络互通
3. 解压安装包,参考README.md文件启动服务
4. 指定IP和端口号启动:
启动方式一:
bin/cerebro -Dhttp.port=1234 -Dhttp.address=127.0.0.1
启动方式二:
修改配置文件conf/application.conf
指定监控的ES集群IP和Port:
# A list of known hosts hosts = [ { host = "http://10.51.179.102:9200" name = "Es-test" }, # Example of host with authentication #{ # host = "http://some-authenticated-host:9200" # name = "Secured Cluster" # auth = { # username = "username" # password = "secret-password" # } #}
启动服务:
bin/cerebro -Dconfig.file=conf/application.conf
5. 方式一启动之后浏览器访问服务:
如下图界面:
窗口中输入待监控的ES集群的ip和port
如下图:
登陆进去之后overview可以查看集群的索引分布情况(方式二启动直接到该界面):
Nodes可以看到各节点的资源使用情况:
![](https://forum-img.huaweicloud.com/data/attachment/forum/201806/15/111747birk0yk7bvgfmkja.png)
Rest可以往集群发请求,调用ES的API:
![](https://forum-img.huaweicloud.com/data/attachment/forum/201806/15/110959rvlhpbw7kodfxckj.png)
More可以做更多操作:
![](https://forum-img.huaweicloud.com/data/attachment/forum/201806/15/111014wojdfjbq61v8gx4t.png)