监控elastichq

github 官网:https://github.com/ElasticHQ/elasticsearch-HQ

ElasticHQ 是一个具有良好体验、直观和功能强大的 ElasticSearch 的管理和监控工具,它提供了实时监控、全集群管理、搜索和查询等功能。使用 ElasticHQ 的必须条件有两个,一个是 Web 浏览器,另一个是正在运行的 ElasticSearch 实例,且需要具有可访问、REST 风格的 URL。
docker部署

docker run -p 5000:5000 elastichq/elasticsearch-hq

k8s部署elastichq

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: es
module: elastichq
name: elastichq
namespace: cloudai-2
spec:
replicas: 1
selector:
matchLabels:
app: es
module: elastichq
template:
metadata:
labels:
app: es
module: elastichq
spec:
containers:
- image: elastichq/elasticsearch-hq
# imagePullPolicy: Always
name: elastichq
ports:
- containerPort: 5000
name: tcp5000
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
---
apiVersion: v1
kind: Service
metadata:
labels:
app: es
module: elastichq
name: elastichq
namespace: cloudai-2
spec:
ports:
- name: tcp5000
port: 5000
targetPort: tcp5000
selector:
app: es
module: elastichq
type: NodePort # ClusterIP

部署之后打开web,页面,写入es的地址就可以了.

http://elasticsearch-client.cloudai-2:9200

Elasticsearch 监控和优化(持续)_监控