1. 首页
  2. 数据库
  3. 其它
  4. client_python:适用于Python应用程序的Prometheus工具库 源码

client_python:适用于Python应用程序的Prometheus工具库 源码

上传者: 2021-02-09 15:23:24上传 ZIP文件 87.88KB 热度 12次
Prometheus Python客户端 的官方Python 2和3客户端。 三步演示 一:安装客户端: pip install prometheus-client 二:将以下内容粘贴到Python解释器中: from prometheus_client import start_http_server , Summary import random import time # Create a metric to track time spent and requests made. REQUEST_TIME = Summary ( 'request_processing_seconds
下载地址
用户评论