当前位置:网站首页>部署Prometheus-server服务 system管理
部署Prometheus-server服务 system管理
2022-06-29 06:39:00 【努力,奋斗啊】
- 下载地址
部署环境
[[email protected] src]# uname -a
Linux iZwz9b8x8l2oe511fss4qfZ 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] src]# lsb
lsblk lsb_release
[[email protected] src]# lsb_release
LSB Version: :core-4.1-amd64:core-4.1-noarch
官方地址
国内地址
wget https://github.com/prometheus/prometheus/releases/download/v2.35.0/prometheus-2.35.0.linux-amd64.tar.gz
- systemd 管理prometheus
tar xzvf prometheus-2.35.0.linux-amd64.tar.gz -C /usr/local/services/ #解压
cd /usr/local/services/prometheus-2.35.0.linux-amd64
cp prometheus /usr/local/bin/
cp promtool /usr/local/bin/
cat /usr/lib/systemd/system/prometheus.service
[Unit]
Description=Prometheus-Server
Documentation=https://prometheus.io/
After=network.target
[Service]
ExecStart=/usr/local/bin/prometheus \
--web.listen-address=172.18.138.10:9090 \
--web.read-timeout=5m --web.max-connections=512 \
--storage.tsdb.retention=20d \
--storage.tsdb.path=data/ \
--query.max-concurrency=20 \
--query.timeout=2m
WorkingDirectory=/data/prometheus
Restart=on-failure
RestartSec=20
[Install]
WantedBy=multi-user.target
mkdir /data/prometheus #创建prometheus工作目录
cp prometheus.yml /data/prometheus/ #默认配置启动配置为当前工作目录下
systemctl daemon-reload
systemctl enable prometheus
systemctl restart prometheus

边栏推荐
猜你喜欢

And check the collection hello

反射修改final

NoSQL数据库之Redis(一):安装 & 简介

In vscade, how to use eslint to lint and format

How to fix Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorli
![[answer all questions] CSDN question and answer function evaluation](/img/32/571c9c5f4eb7f69173ae79b8dcf427.jpg)
[answer all questions] CSDN question and answer function evaluation

Draw multiple ROC curves on a graph

数字ic设计——UART

Redis in NoSQL database (4): redis publishing and subscription

Multimodal learning pooling with context gating for video classification
随机推荐
利用IPv6實現公網訪問遠程桌面
【翻译】簇拥而出。构建现代应用程序的设计方法
Qt 处理图像数据的类区别(QPixmap、QImage、QPicture)
What are the conditions for a high-quality public chain?
[translation] [Chapter II ①] mindshare PCI Express technology 3.0
【软件测试】接口——基本测试流程
Illegal forward reference and enums
Solve the problem that NPM does not have permission
. NETCORE uses redis to limit the number of interface accesses
[QNX Hypervisor 2.2用户手册]6.2.1 Guest之间通信
【科普资料】从科学精神到科学知识的材料
MIPS指令集与简要分析
Multimodal learning pooling with context gating for video classification
Draw multiple ROC curves on a graph
JDBC connects to the database and socket sends the client.
2022.6.27-----leetcode. five hundred and twenty-two
软件工程师与软件开发区别? Software Engineer和Software Developer区别?
Qt STL类型迭代器
Using IPv6 to access remote desktop through public network
. Net core + DDD basic layering + project basic framework + personal summary "suggestions collection"