mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 15:31:00 +00:00
Excempt /metrics from limits
This commit is contained in:
parent
9d2a2cd55f
commit
40a1141eac
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue