Prometheus + Grafana 使用 elasticsearch_exporter 监控 ElasticSearch

Prometheus Exporters:https://prometheus.io/docs/instrumenting/exporters/
elasticsearch_exporter:https://github.com/justwatchcom/elasticsearch_exporter
Grafana Dashboard:https://grafana.com/grafana/dashboards/2322

创建 Elasticsearch Data Sources

No date field named @timestamp found

版本问题:Version改为7.0+即可

elasticsearch_exporter部署

# tar -zxf elasticsearch_exporter-1.1.0rc1.linux-amd64.tar.gz -C /usr/local/
# mv /usr/local/elasticsearch_exporter-1.1.0rc1.linux-amd64 /usr/local/elasticsearch_exporter
# cd /usr/local/elasticsearch_exporter/
# nohup ./elasticsearch_exporter --web.listen-address "0.0.0.0:9108" --es.uri http://192.168.165.239:9200 &
# nohup ./elasticsearch_exporter --web.listen-address "0.0.0.0:9108" --es.uri http://elastic:******@192.168.165.239:9200 &
# curl localhost:9108/metrics

Prometheus配置

- job_name: elasticsearch
  metrics_path: "/metrics"
  static_configs:
    - targets: ['192.168.165.239:9108']
      labels:
        instance: elasticsearch
        group: inner

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/25/prometheus-grafana-using-elasticsearch-exporter-monitoring-elasticsearch/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Prometheus + Grafana 使用 elasticsearch_exporter 监控 ElasticSearch
Prometheus Exporters:https://prometheus.io/docs/instrumenting/exporters/ elasticsearch_exporter:https://github.com/justwatchcom/elasticsearch_expo……
<<上一篇
下一篇>>
文章目录
关闭
目 录