当前位置:网站首页>部署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

边栏推荐
- 关于数据库,你应该知道的事情
- 利用Jsonp跨域请求数据
- LeetCode_ Dynamic programming_ Medium_ 91. decoding method
- CI工具Jenkins安装配置教程
- Crawler data analysis (introduction 2-re analysis)
- 服装行业的CRM品牌供应商如何选型?
- Exploring the depth of objects in JVM series
- idea控台中文乱码问题【亲测有效】
- 2022.6.27-----leetcode. five hundred and twenty-two
- Illegal forward reference and enums
猜你喜欢

【科普资料】从科学精神到科学知识的材料

利用IPv6實現公網訪問遠程桌面

E-commerce is popular, how to improve the store conversion rate?

Error: GPG check FAILED Once install MySQL

关联性——相关性分析

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

Using IPv6 to access remote desktop through public network

消息队列之通过队列批处理退款订单

施工企业选择智慧工地的有效方法

Solve the problem that NPM does not have permission
随机推荐
Redis de la base de données nosql (v): redis Jedis Tests
Method of changing host name (permanent)
Qt STL类型迭代器
虚拟DOM真的是最快的吗?
2022.6.27-----leetcode.522
Comment choisir les fournisseurs de marques CRM dans l'industrie du vêtement?
数字ic设计——UART
Webrtc series - 8-connectivity detection for network transmission
Introduction to QT qfileinfo
Using IPv6 to access remote desktop through public network
Common status codes for page error reporting
uva10859
[qnx hypervisor 2.2 user manual]6.2.1 communication between guests
Unexpected exception ... code: Badrequest when downloading Xilinx 2018.2
Shift/space studio "Aurora" project: building a villa in the sandbox metauniverse
Tree drop-down selection box El select combined with El tree effect demo (sorting)
Markdown 技能树(2):段落及强调
What are the conditions for a high-quality public chain?
Testing grpc service with grpcui
节流的两种写法-最近看到的这种写法