prometheus监控带安全认证的elasticsearch

1.下载elasticsearch_exporter

wget 下载二进制包并解压、运行:

wget https://github.com/prometheus-community/elasticsearch_exporter/releases/download/v1.3.0/elasticsearch_exporter-1.3.0.linux-amd64.tar.gz

tar -xvf elasticsearch_exporter-1.3.0.linux-amd64.tar.gz

mv elasticsearch_exporter-1.3.0.linux-amd64/ elasticsearch_exporter

cd elasticsearch_exporter

2.运行elasticsearch_exporter:

nohup ./elasticsearch_exporter --es.all --es.indices --es.cluster_settings --es.indices_settings --es.shards --es.snapshots --es.timeout=10s --web.listen-address=":9114" --web.telemetry-path="/metrics" --es.uri http://elastic:FtBMPT31rPiQ@192.168.2.40:9200 &

(uri中要写成自己es的用户和密码)

查看输出日志:

3.看指标信息:

web 访问

4.启动好后来prometheus添加配置

编辑prometheus.yml

  • job_name: "es"

static_configs:

  • targets: ["192.168.2.40:9114"]

  • targets: ["192.168.2.41:9114"]

  • targets: ["192.168.2.42:9114"]

  1. 登录prometheus http://192.168.2.xx:9090/

6.配置完成后在Grafana官网中下载es的监控模板 Dashboards | Grafana Labs 下载es的模板

Elasticsearch Exporter Quickstart and Dashboard | Grafana Labs

7.添加Prometheus 数据源

8.选择 Prometheus

9.导入监控 Dashboard 模板

10.查看指标信息是否有数据

至此,配置完成!

相关推荐
Guheyunyi17 分钟前
消防管理系统如何重构现代空间防御体系
大数据·运维·人工智能·安全·信息可视化·重构
我是好小孩22 分钟前
【Android】六大设计原则
android·java·运维·服务器·设计模式
孙同学要努力1 小时前
《Linux篇》进程状态——浅度、深度睡眠状态、僵尸状态、运行状态
linux·运维
jieyu11192 小时前
Linux Rootkit 详解
linux·运维·系统安全
宁檬精2 小时前
运维面试准备——综合篇(一)
linux·运维·服务器
weixin_456904272 小时前
工业自动化通信控制
运维·struts·自动化
帅帅梓4 小时前
nginx访问控制 用户认证 https
运维·nginx·https
b***25114 小时前
比斯特自动化|为什么焊接18650电池离不开点焊机?
运维·自动化
xgysimida5 小时前
一文搞懂supervisord是什么?
运维·运维开发
做运维的阿瑞5 小时前
从传统Linux部署到容器化:实践对比与工程化指南
linux·运维·服务器