1.地址
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專(zhuān)注于網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開(kāi)發(fā)、微信小程序開(kāi)發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶(hù)創(chuàng)新互聯(lián)還提供了鶴山免費(fèi)建站歡迎大家使用!
使用文檔:https://prometheus.io/docs/guides/node-exporter/ GitHub:https://github.com/prometheus/node_exporter exporter列表:https://prometheus.io/docs/instrumenting/exporters/
2.下載
?wget??https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
3. 安裝并啟動(dòng)
mv?node_exporter-0.18.1.linux-amd64??/usr/local/node_exporter [root@zabbix-server?system]#?cat?node_exporter.service [Unit] Description=node_exporter Documentation=https://prometheus.io/ After=network.target [Service] Type=simple User=prometheus ExecStart=/usr/local/node_exporter/node_exporter Restart=on-failure [Install] WantedBy=multi-user.target [root@zabbix-server?system]#?pwd /usr/lib/systemd/system [root@zabbix-server?system]#? systemctl??daemon-reload systemctl?start?node_exporter
4.查看 metrics
http://192.168.249.10:9100/metrics
5. prometheus 把 node_exporter加載進(jìn)去
[root@zabbix-proxy?sd_config]#?cat?prometheus-server.yml? -?labels: ????service:?prometheus ????idc:?su ????project:?monitor ??targets: ??-?192.168.249.11:9090 ??-?192.168.249.10:9100 [root@zabbix-proxy?sd_config]#?cat?../prometheus.yml #?my?global?config global: ??scrape_interval:?????15s?#?Set?the?scrape?interval?to?every?15?seconds.?Default?is?every?1?minute. ??evaluation_interval:?15s?#?Evaluate?rules?every?15?seconds.?The?default?is?every?1?minute. ??#?scrape_timeout?is?set?to?the?global?default?(10s). #?Alertmanager?configuration alerting: ??alertmanagers: ??-?static_configs: ????-?targets: ??????#?-?alertmanager:9093 #?Load?rules?once?and?periodically?evaluate?them?according?to?the?global?'evaluation_interval'. rule_files: ??#?-?"first_rules.yml" ??#?-?"second_rules.yml" #?A?scrape?configuration?containing?exactly?one?endpoint?to?scrape: #?Here?it's?Prometheus?itself. scrape_configs: ??#?The?job?name?is?added?as?a?label?`job=<job_name>`?to?any?timeseries?scraped?from?this?config. ??-?job_name:?'prometheus' ????file_sd_configs: ??????-?files:?['/usr/local/prometheus/sd_config/*.yml'] ????????refresh_interval:?5s [root@zabbix-proxy?sd_config]#
6.查看
本文名稱(chēng):prometheus03-node_exporter
URL標(biāo)題:http://jinyejixie.com/article6/iiseig.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、商城網(wǎng)站、外貿(mào)建站、網(wǎng)站營(yíng)銷(xiāo)、企業(yè)網(wǎng)站制作、搜索引擎優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)