1.elasticsearch
版本:docker 部署的 6.7.1
根据不同的版本到 https://github.com/vvanholl/elasticsearch-prometheus-exporter/tags 找到对应版本的插件地址。
进入docker 执行,此处为6.7.1版本
./bin/elasticsearch-plugin install -b https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/6.7.1.0/prometheus-exporter-6.7.1.0.zip
安装成功显示
-> Downloading https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/6.7.1.0/prometheus-exporter-6.7.1.0.zip
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.misc
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.reflect.ReflectPermission suppressAccessChecks
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed prometheus-exporter
2.promethues
配置prometheus.yml
targets: 你的es机器主机地址
scrape_configs:
- job_name: 'elasticsearch'
metrics_path: "/_prometheus/metrics"
static_configs:
- targets: [ '172.16.15.54:9200']
- targets: [ '172.16.15.188:9200']
- targets: [ '172.16.15.122:9203']
重启prometheus 生效,并进入prometheus 查看 status-Service Discovery ,如图

3.grafana
配置监控模版,import导入266模版
4.监控实图


本文档介绍了如何在Docker环境下部署Elasticsearch 6.7.1并安装Prometheus exporter插件,然后配置Prometheus以监控Elasticsearch,并在Grafana中导入模板进行可视化展示。详细步骤包括下载插件、安装、配置Prometheus和Grafana监控模板。

851

被折叠的 条评论
为什么被折叠?



