09 2020 档案

摘要:1.显示请求使用时间-使用gauge显示每次的请求时间 [root@VM_0_111_centos exporters]# cat request_time.py |egrep -v '^#|^$' import prometheus_client from prometheus_client im 阅读全文
posted @ 2020-09-20 22:28 littlevigra 阅读(418) 评论(0) 推荐(0)
摘要:1.编写exporter import prometheus_client from prometheus_client import Gauge,start_http_server,Counter import pycurl import time import threading from io 阅读全文
posted @ 2020-09-19 21:40 littlevigra 阅读(1550) 评论(0) 推荐(0)
摘要:0.pushgateway的安装和配置 tar -zxf pushgateway-1.2.0.linux-amd64.tar.gz ./pushgateway & 在Prometheus添加配置 - job_name: 'node_111' static_configs: - targets: [' 阅读全文
posted @ 2020-09-17 22:14 littlevigra 阅读(563) 评论(4) 推荐(0)