From 40a1141eac95e7563f3b575169d20dbdcbbbbeb4 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 26 Dec 2022 20:00:55 -0500 Subject: [PATCH] Excempt /metrics from limits --- app/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/app.py b/app/app.py index b0572fd..2022915 100644 --- a/app/app.py +++ b/app/app.py @@ -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')