当前位置: 首页 > news >正文

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"]

5. 登录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.查看指标信息是否有数据

 至此,配置完成!

相关文章:

  • docker创建mongodb数据库容器
  • Aigtek前置微小信号放大器在传感器检测中的应用有哪些
  • STM32—触摸键
  • @ 代码随想录算法训练营第4周(C语言)|Day22(二叉树)
  • 【MySQL】表的操作
  • React18源码: reconcliler启动过程
  • ✅鉴权—cookie、session、token、jwt、单点登录
  • C语言读取用户输入的常用函数
  • django学习网址
  • 【了解机器学习的定义与发展历程】
  • nifi连接Sql server数据库报错TLS问题
  • Redis cluster集群搭建
  • K8S常用kubectl命令汇总(持续更新中)
  • 每日五道java面试题之spring篇(二)
  • sonar-java 手写一个规则-单元测试分析
  • PyPDF2:项目实战源码分享(PDF裁剪)
  • vue 子组件获取父组件
  • LeetCode9 回文数
  • 2024.2.23
  • 【深度学习笔记】深度学习训练技巧
  • 找化学的答案,解人类的命题:巴斯夫的“变革者”成长之道
  • 跨海论汉|专访白馥兰:对中国农业史的兴趣,从翻译《齐民要术》开始
  • 阿曼外交大臣:伊美下一轮谈判暂定5月3日举行
  • “十四五”以来少数民族发展资金累计下达边疆省区252亿元
  • 王毅会见乌兹别克斯坦外长赛义多夫
  • 解码人格拼图:探索心理健康的多维视角