当前位置:网站首页>Prometheus deployment
Prometheus deployment
2022-06-24 16:37:00 【kevin_ yyc】
One 、 Environmental preparation
1、 Firewall configuration
The firewall is closed here , Or you can turn on the firewall 9100、9093 port [[email protected] ~]# systemctl stop firewall [[email protected] ~]# systemctl disable firewalld
2、selinux To configure
[[email protected] ~]# vim /etc/selinux/config SELINUX=disabled [[email protected] ~]# setenforce 0
3、 to update yum
[[email protected] ~]# yum update
Two 、Prometheus Deploy
1、 Download installation package
Download link :https://prometheus.io/download/
2、 Package decompression
tar xvfz prometheus-*.tar.gz
3、 To configure Prometheus monitor
cd prometheus-* [[email protected] prometheus-2.26.0.linux-amd64]# vi 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: - 172.16.1.x:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - "rules/*_rules.yml" - "rules/*_alerts.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' # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['localhost:9090'] - job_name: 'linux172.16.1.4x' static_configs: - targets: ['172.16.1.4x:9100'] labels: instance: linux172.16.1.4x
4、 Deploy node_exporter
Download address :https://prometheus.io/download/
Download and upload installation package :node_exporter-1.1.2.linux-amd64.tar.gz [[email protected] prometheus]# tar -xzvf node_exporter-1.1.2.linux-amd64.tar.gz $ To configure node Boot up [[email protected] node_exporter-1.1.2.linux-amd64]# sudo groupadd -r prometheus [[email protected] node_exporter-1.1.2.linux-amd64]# sudo useradd -r -g prometheus -s /sbin/nologin -M -c "prometheus Daemons" prometheus [[email protected] node_exporter-1.1.2.linux-amd64]# cat << EOF > /usr/lib/systemd/system/node_exporter.service [Service] User=prometheus Group=prometheus ExecStart=/opt/prometheus/node_exporter-1.1.2.linux-amd64/node_exporter [Install] WantedBy=multi-user.target [Unit] Description=node_exporter After=network.target EOF $ start-up , Check the status , Configure boot up systemctl start node_exporter systemctl status node_exporter systemctl enable node_exporter
5、Master Node editing “prometheus.yml” increase “node_exporter”IP
[[email protected] plugins]# vi prometheus.yml - job_name: 'linux172.16.1.4x' static_configs: - targets: ['172.16.1.4x:9100'] labels: instance: 172.16.1.4x
6、 Hot update Prometheus.yml
curl -XPOST http://localhost:9090/-/reload
7、Web visit Prometheus Address :localhost:9090/targets
边栏推荐
- How to open a futures account safely? Which futures companies are more reliable?
- A survey on dynamic neural networks for natural language processing, University of California
- What is thermal data detection?
- How do HPE servers make RAID5 arrays? Teach you step by step today!
- Istio FAQ: sidecar stop sequence
- 国泰君安期货安全么?期货开户怎么开?期货手续费怎么降低?
- 【prometheus】1. Monitoring overview
- How to pop up an alarm through the national standard gb28181 protocol video platform easygbs for mobile detection / perimeter intrusion detection video recording
- Some adventurer hybrid versions with potential safety hazards will be recalled
- Istio FAQ: sidecar startup sequence
猜你喜欢

ZOJ - 4104 sequence in the pocket
![[go] concurrent programming channel](/img/6a/d62678467bbc6dfb6a50ae42bacc96.jpg)
[go] concurrent programming channel

C. K-th not divisible by n (Mathematics + thinking) codeforces round 640 (Div. 4)

Ui- first lesson

Problems encountered in the work of product manager

Applet - use of template

Ps\ai and other design software pondering notes

Some adventurer hybrid versions with potential safety hazards will be recalled

A survey on model compression for natural language processing (NLP model compression overview)

There are potential safety hazards Land Rover recalls some hybrid vehicles
随机推荐
Pytorch 转置卷积
Bitwise Operators
Understanding of deep separable convolution, block convolution, extended convolution, transposed convolution (deconvolution)
Video structured intelligent analysis platform easycvr video recording plan function optimization / regularly delete expired videos
Load MySQL table data consumption quick installation configuration through kafka/flink
Serial of H3CNE experiment column - VLAN configuration experiment, access and trunk
During JMeter pressure measurement, time_ The number of requests does not go up due to many waits. The problem is solved
A survey on model compression for natural language processing (NLP model compression overview)
Leetcode notes of Google boss | necessary for school recruitment!
Embedded Software Engineer written interview guide arm system and architecture
Recent progress of ffmpeg go
AI video structured intelligent security platform easycvr realizes intelligent security monitoring scheme for procuratorate building
Fastjson vulnerability utilization techniques
How FEA and FEM work together
MySQL日期时间戳转换
CDs view permission check
Istio FAQ: virtualservice route matching sequence
Summer Challenge harmonyos - to do list with date effect
A set of very good H3C and Tianrongxin Internet cutover scheme templates, with word document download
[tke] modify the cluster corendns service address