pip install prometheus_client
pip install flask
Tips : 在基础得演示阶段我可以使用Python3自带的http.server模块启动一个简易Web容器...(self, method, status, path, amount=1.0):
self.http_request_fail_count.labels(method, status,...(self, method, status, path, cost_time):
self.http_request_predict_cost.labels(method, status...{method="GET",path="/result"} 1.0
http_requested_total{method="GET",path="/"} 2.0
http_requested_total...{method="GET",path="/favicon.ico"} 1.6238540611298337e+09
http_requested_created{method="GET",path="/