自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

你不知道的Prometheus - elasticsearch_exporter 部署

運(yùn)維 系統(tǒng)運(yùn)維
Prometheus 是一個(gè)開(kāi)源的服務(wù)監(jiān)控系統(tǒng)和時(shí)間序列數(shù)據(jù)庫(kù)。prometheus獲取elasticsearch指標(biāo)需要借助elasticsearch_exporter。

簡(jiǎn)介

Prometheus - elasticsearch_exporter 部署

prometheus獲取elasticsearch指標(biāo)需要借助elasticsearch_exporter。

部署

在github下載頁(yè)面:

github.com/prometheus-community/elasticsearch_exporter/releases

解壓到

/opt/prometheus/elasticsearch_exporter目錄就可以直接運(yùn)行(如果式解壓到其他目錄,下面的啟動(dòng)文件也要修改對(duì)應(yīng)的路徑)

  1. vim /usr/lib/systemd/system/elasticsearch_exporter.service 
  1. [Unit] 
  2. Description=elasticsearch_exporter 
  3. After=network.target 
  4.  
  5. [Service] 
  6. Type=simple 
  7. WorkingDirectory=/opt/prometheus/elasticsearch_exporter 
  8. ExecStart=/opt/prometheus/elasticsearch_exporter/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:xxxxx@192.168.1.200:9200 
  9. LimitNOFILE=65536 
  10. PrivateTmp=true 
  11. RestartSec=2 
  12. StartLimitInterval=0 
  13. Restart=always 
  14.  
  15. [Install] 
  16. WantedBy=multi-user.target 

--es.uri 這里如果有驗(yàn)證就寫(xiě)成basic auth的方式,如果沒(méi)有驗(yàn)證直接寫(xiě)http://192.168.1.200:9200

啟動(dòng):

  1. systemctl enable elasticsearch_exporter.service 
  2. systemctl start elasticsearch_exporter.service 

配置prometheus

Prometheus - elasticsearch_exporter 部署

直接在prometheus.yaml里面加一個(gè)job即可。

  1. - job_name: 'elasticsearch_exporter' 
  2.   static_configs: 
  3.   - targets: ['127.0.0.1:9114'

重載一下prometheus配置即可生效。

grafana配置

下載壓縮包里面有一個(gè)dashboard.json的文件就可以grafana的面板JSON。

grafana界面左邊的菜單:Dashboards --> import ,將JSON文件的內(nèi)容復(fù)制到Import via panel json的輸入框,保存即可導(dǎo)入完成。

Prometheus - elasticsearch_exporter 部署

 

責(zé)任編輯:姜華 來(lái)源: 今日頭條
相關(guān)推薦

2020-06-12 09:20:33

前端Blob字符串

2020-07-28 08:26:34

WebSocket瀏覽器

2011-09-15 17:10:41

2022-10-13 11:48:37

Web共享機(jī)制操作系統(tǒng)

2009-12-10 09:37:43

2021-02-01 23:23:39

FiddlerCharlesWeb

2010-08-23 09:56:09

Java性能監(jiān)控

2019-07-23 15:56:56

Spring Boot部署servlet

2019-07-23 17:52:59

Spring BootJava開(kāi)發(fā)

2020-09-15 08:35:57

TypeScript JavaScript類型

2022-11-04 08:19:18

gRPC框架項(xiàng)目

2021-12-29 11:38:59

JS前端沙箱

2021-12-22 09:08:39

JSON.stringJavaScript字符串

2012-11-23 10:57:44

Shell

2015-06-19 13:54:49

2020-08-11 11:20:49

Linux命令使用技巧

2021-10-17 13:10:56

函數(shù)TypeScript泛型

2012-06-26 15:49:05

2014-03-12 09:23:06

DevOps團(tuán)隊(duì)合作

2017-03-02 14:05:42

AndroidAndroid Stu調(diào)試技巧
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)