1.安裝: 如果有elk單獨用戶,切換到該用戶下, wget下載,進入到es安裝目錄,執行 ./elasticsearch-plugin install file://$(pwd)/../../elasticsearch-prometheus-exporter-6.4.2.0.zip 即可完成安裝
2.prometheus的配置
- job_name: 'elasticsearch' scrape_interval: 6s metrics_path: "/_prometheus/metrics" static_configs: - targets: ['192.168.1.44:9200']
3.elastic search6.4.2合適的dashboard id 266
4.參考:https://www.cnblogs.com/lizhaojun-ops/p/10676362.html https://github.com/vvanholl/elasticsearch-prometheus-exporter
----------------------------------------------------------------
https://blog.csdn.net/w372426096/article/details/90697088