当前位置:网站首页>Prometheus installation
Prometheus installation
2022-07-04 19:57:00 【Code Taoist】
First, check the current server centos Version of
cat /etc/centos-releaseIt is divided into centOs6 and 7 Methods ;
【// If yum If not, run the following steps , If you can use it, you don't need to change the source , Upload the installation package manually , You don't have to change it
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
curl -k -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache】
One 、 Download the software package on the official website
https://prometheus.io/download/
Upload package :( The installation package file has been installed ,)
prometheus-2.14.0.linux-amd64.tar.gz
Unzip package :
tar xvf prometheus-2.14.0.linux-amd64.tar.gzmv prometheus-2.14.0.linux-amd64 /usr/local/prometheusfunction Prometheus server:
cd /usr/local/prometheus./prometheus --config.file=prometheus.ymlTwo 、 To configure Prometheus
stay Prometheus.yml There is a configuration file , We can configure it , Of course, the first installation can also be configured without ;
vim /usr/local/prometheus/prometheus.ymlVerify the configuration file
./promtool check config ./prometheus.ymlTo configure service Startup file
centos7 The method is as follows ://
vim /usr/lib/systemd/system/prometheus.serviceAdd content
[Unit]
Description=The Prometheus Server
After=network.target
[Service]
Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml
RestartSec=15s
[Install]
WantedBy=multi-user.targetsystemctl daemon-reloadsystemctl restart prometheusss -antlcentos6:
vim /usr/lib/systemd/system/prometheus.service After entering the file, add the contents in the above command , There are no directories and files to create
sudo chkconfig daemon-reloadservice prometheus restart3、 ... and 、 start-up prometheus command
/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml &perhaps
**** ./prometheusFour 、 On the web http://192.168.0.xxx:9090/targets Access is successful .
边栏推荐
- Introduction to polyfit software
- C语言-入门-基础-语法-流程控制(七)
- BCG 使用之CBCGPTabWnd控件(相当于MFC TabControl)
- Utilisation de la barre de progression cbcggprogressdlgctrl utilisée par BCG
- 1009 Product of Polynomials(25 分)(PAT甲级)
- Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?
- How test engineers "attack the city" (Part 2)
- c# .net mvc 使用百度Ueditor富文本框上传文件(图片,视频等)
- 西门子HMI下载时提示缺少面板映像解决方案
- Mysql database basic operation -ddl | dark horse programmer
猜你喜欢

勾股数规律(任意三个数能够满足勾股定理需要满足的条件)

Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?

Pytorch学习(四)

Detailed explanation of the binary processing function threshold() of opencv

English语法_名词 - 使用
牛客小白月赛7 谁是神箭手
![[problem] Druid reports exception SQL injection violation, part always true condition not allow solution](/img/cc/160bc8ccdc378901510c1b61c3f5d3.png)
[problem] Druid reports exception SQL injection violation, part always true condition not allow solution

Pointnet/Pointnet++点云数据集处理并训练

多表操作-外连接查询

上线首月,这家露营地游客好评率高达99.9%!他是怎么做到的?
随机推荐
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
FPGA timing constraint sharing 01_ Brief description of the four steps
[QNX Hypervisor 2.2用户手册]6.3.1 工厂页和控制页
What should we pay attention to when doing social media marketing? Here is the success secret of shopline sellers!
Online text line fixed length fill tool
Cbcgpprogressdlgctrl progress bar used by BCG
[problem] Druid reports exception SQL injection violation, part always true condition not allow solution
1007 maximum subsequence sum (25 points) (PAT class a)
Niuke Xiaobai month race 7 e applese's super ability
Dark horse programmer - software testing - stage 08 2-linux and database-23-30-process port related, modify file permissions, obtain port number information, program and process related operations, Li
求2的n次方
Multi table operation inner join query
Master the use of auto analyze in data warehouse
Mysql database basic operation -ddl | dark horse programmer
Write it down once Net analysis of thread burst height of an industrial control data acquisition platform
Educational Codeforces Round 22 E. Army Creation
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
Swagger suddenly went crazy
Pointnet / pointnet++ point cloud data set processing and training