Flask 覆盖普罗米修斯默认路径参数

Flask 覆盖普罗米修斯默认路径参数,flask,prometheus,Flask,Prometheus,我在烧瓶应用程序中使用了prometheus\u flask\u exporter。我想覆盖路径参数基本路径,如下例所示 我想跟踪: flask_http_request_duration_seconds_bucket{ad_app="appname",le="0.005",method="POST",path="/api/v1/employee/",status="201"} 而不是: f

我在烧瓶应用程序中使用了
prometheus\u flask\u exporter
。我想覆盖路径参数基本路径,如下例所示

我想跟踪:

flask_http_request_duration_seconds_bucket{ad_app="appname",le="0.005",method="POST",path="/api/v1/employee/",status="201"} 

而不是:

flask_http_request_duration_seconds_bucket{ad_app="appname",le="0.005",method="POST",path="/api/v1/employee/123/abcd/xyz",status="201"}