安装elasticsearch_exporter监控

安装elasticsearch_exporter

下载软件包
[root@VM-39-7-centos opt]#  wget https://github.com/justwatchcom/elasticsearch_exporter/releases/download/v1.1.0/elasticsearch_exporter-1.1.0.linux-amd64.tar.gz
安装启动
tar -zxvf elasticsearch_exporter-1.1.0.linux-amd64.tar.gz  -C /usr/local/
cd /usr/local/
mv  elasticsearch_exporter-1.1.0.linux-amd64 elasticsearch_exporter
cd elasticsearch_exporter/
nohup ./elasticsearch_exporter --web.listen-address=":9114" --es.uri http://127.0.0.1:9200 & 
netstat -nltp
curl http://127.0.0.1:9114/metrics
修改prometheus配置文件
[root@codeversionforgitserver prometheus]# more  prometheus.yml
......
  - job_name: 'elasticsearch'
    scrape_interval: 60s
    scrape_timeout:  30s
    metrics_path: "/metrics"
    static_configs:
    - targets: ['10.144.1.121:9114']

重启prometheus应用

验证prometheus关联是否成功

Grafana配置监控面板

导入2322的id面板

更多的学习
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值