In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to integrate Prometheus Node Exporter, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
Brief introduction
Prometheus officials and some third parties have made the collection of some commonly used databases, systems, middleware and other index data into an exporter, which can be directly imported and used in the production environment. We use the Node Exporter officially provided by Prometheus to complete the collection of Linux system operation data.
Installation and Operation of Experimental NodeExporter
Download address: https://github.com/prometheus/node_exporter/releases
Download and extract:
Wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gztar zxvf node_exporter-0.18.1.linux-amd64.tar.gz
Enter node_exporter-0.18.1.linux-amd64 to start nod
E_exporter:
. / node_exporterPrometheus configuration
Configure the metrics endpoint of node_exporter in prometheus.yml as follows:
Global: scrape_interval: 5s evaluation_interval: 5s timeout: 5sscrape_configs:-job_name: 'prometheus' static_configs:-targets: [' localhost:9090']-job_name: 'linux-exporter' metrics_path: / metrics static_configs:-targets: [' 172.16.2.101 evaluation_interval 9100']
Start prometheus:
Docker run-- name prometheus-d-p 9090 prom/prometheus 9090-v / root/prometheus-data:/prometheus-data\ prom/prometheus-- web.enable-lifecycle-- config.file=/prometheus-data/prometheus.yml
Visit http://172.16.2.101:9090/targets and find that target "node_exporter" has appeared and is in UP status.
Grafana Import DashBoard
Grafana officials and the community have already done the commonly used DashBoard. You can visit https://grafana.com/grafana/dashboards to query.
Select the one with the most downloads and click in:
The id of DashBoard is 8919, which will be used later.
Start Grafana
Docker start grafana
Import (Import) Node Exporter dashboard through the + icon of Grafana:
Grafana id = 2129
Note that the prometheus data source is selected
Click "Import" to jump to the monitoring interface:
Through the interface, you can directly see the host cpu occupancy, load, disk space, memory and other information.
The above is all the content of the article "how Prometheus integrates Node Exporter". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.