当前位置:网站首页>Deploy Prometheus server service system management
Deploy Prometheus server service system management
2022-06-29 07:24:00 【Work hard, work hard】
- Download address
Deployment environment
[[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
Official address
Home address
wget https://github.com/prometheus/prometheus/releases/download/v2.35.0/prometheus-2.35.0.linux-amd64.tar.gz
- systemd management prometheus
tar xzvf prometheus-2.35.0.linux-amd64.tar.gz -C /usr/local/services/ # decompression
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 # establish prometheus working directory
cp prometheus.yml /data/prometheus/ # Default configuration startup configuration is under the current working directory
systemctl daemon-reload
systemctl enable prometheus
systemctl restart prometheus

边栏推荐
- 软件测试面试如何正确谈论薪资?
- [translation] [Chapter II ①] mindshare PCI Express technology 3.0
- 大型化工企业数字化转型建议
- [translation] [Chapter 2 ②] mindshare PCI Express technology 3.0
- NoSQL数据库之Redis(五):Redis_Jedis_测试
- Introduction to Ceres Quartet
- 示波器 符号
- Testing grpc service with grpcui
- 机器学习笔记 - 时间序列的混合模型
- 国家安全局和CISA Kubernetes加固指南--1.1版的新内容
猜你喜欢

Ci tool Jenkins II: build a simple CI project

Domestic code hosting center code cloud

YGG cooperated with Web3 platform leader to empower the creative community with Dao tools and resources

CI工具Jenkins安装配置教程

Introduction to Ceres Quartet

Idea integrated code cloud

Markdown 技能树(5):图片

NoSQL数据库之Redis(二):Redis配置文件介绍

Redis (4) of NoSQL database: redis new data type

电子商务盛行,怎么提高商店转换率?
随机推荐
Suggestions on digital transformation of large chemical enterprises
In vscade, how to use eslint to lint and format
LiveData源码赏析 —— 基本使用
Introduction to QT qfileinfo
2022.6.27-----leetcode. five hundred and twenty-two
Testing grpc service with grpcui
What are the conditions for a high-quality public chain?
你真的懂 “Binder 一次拷贝吗“?
Unexpected exception ... code: Badrequest when downloading Xilinx 2018.2
[QNX Hypervisor 2.2用户手册]6.2.1 Guest之间通信
Method of changing host name (permanent)
QT foreach keyword
How to fix Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorli
Redis in NoSQL database (4): redis publishing and subscription
Twitter launches the test of anti abuse tool "safe mode" and adds enabling prompt
Save token get token refresh token send header header
WordPress adds article topping, password protection, and privacy Tags
To: Hou Hong: the key to enterprise digital transformation is not technology, but strategy
Differences between JSON objects and JSON strings
Markdown 技能树(9):表格