文章分类 -  Prometheus / 第十一章 监控系统二次开发实战

摘要:...... 阅读全文
posted @ 2024-05-16 18:02 ~技术小白 阅读(4) 评论(0) 推荐(0) 编辑
摘要:1、创建监控文件 vim procexporter.py #!/usr/bin/python3 # coding:utf-8 from prometheus_client import Gauge from prometheus_client.core import CollectorRegistr 阅读全文
posted @ 2024-05-16 18:01 ~技术小白 阅读(9) 评论(0) 推荐(0) 编辑
摘要:1、安装使用iostat命令 yum install sysstat vim disk_exporter.py #!/usr/bin/python3 # coding:utf-8 from prometheus_client import Gauge from prometheus_client.c 阅读全文
posted @ 2024-05-16 11:16 ~技术小白 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1、python3环境准备 2、框架的选择 - prometheus_client - fastapi - uvicorn - psutil 安装 prometheus_client pip3 install prometheus_client 安装 fastapi pip3 install fas 阅读全文
posted @ 2024-05-16 10:50 ~技术小白 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示