From 0c27108eaf33aef0eba51d2a3c33712aba4beb28 Mon Sep 17 00:00:00 2001 From: rwxd Date: Fri, 9 Feb 2024 14:29:38 +0100 Subject: [PATCH] fix: corrected fastapi metric exporter --- powerdns_api_proxy/proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/powerdns_api_proxy/proxy.py b/powerdns_api_proxy/proxy.py index 5016667..37de012 100644 --- a/powerdns_api_proxy/proxy.py +++ b/powerdns_api_proxy/proxy.py @@ -75,6 +75,7 @@ async def _startup(app: FastAPI): logger.info('Enabling metrics') instrumentator.add(metrics.default()) instrumentator.add(http_requests_total_environment()) + instrumentator.instrument(app) if config.metrics_require_auth: logger.info('Enabling metrics authentication')