mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-23 17:02:58 -04:00
Excempt /metrics from limits
This commit is contained in:
parent
9d2a2cd55f
commit
40a1141eac
@ -182,6 +182,7 @@ def create_app(args):
|
||||
from prometheus_client import CONTENT_TYPE_LATEST, Summary, Gauge, CollectorRegistry, multiprocess, generate_latest
|
||||
|
||||
@app.route("/metrics")
|
||||
@limiter.exempt
|
||||
def prometheus_metrics():
|
||||
if args.metrics_auth_token:
|
||||
authorization = request.headers.get('Authorization')
|
||||
|
Loading…
x
Reference in New Issue
Block a user