prometheus03-node_exporter-创新互联
1.地址
海勃湾网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联公司2013年成立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联。使用文档: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.gz3. 安装并启动
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_exporter4.查看 metrics
http://192.168.249.10:9100/metrics
5. prometheus 把 node_exporter加载进去
[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=6.查看
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前题目:prometheus03-node_exporter-创新互联
本文URL:http://pwwzsj.com/article/deecdd.html