From d6a3d9a3f66de0e52ed81b7006db7538bfc7a458 Mon Sep 17 00:00:00 2001 From: knight Date: Wed, 4 Feb 2026 10:17:19 -0500 Subject: [PATCH] Add detailed access logging and Prometheus metrics - accessLog: field filtering to drop sensitive headers (Authorization) while keeping useful ones (User-Agent, Content-Type, Referer) - metrics: Prometheus endpoint with latency buckets (0.1, 0.3, 1.2, 5.0s) Aligned with core's observability config. Co-Authored-By: Claude Opus 4.5 --- stacks/traefik/traefik.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/stacks/traefik/traefik.yml b/stacks/traefik/traefik.yml index a8cf100..d09eb7d 100644 --- a/stacks/traefik/traefik.yml +++ b/stacks/traefik/traefik.yml @@ -47,3 +47,22 @@ log: accessLog: filePath: /var/log/traefik_access.log format: json + fields: + defaultMode: keep + names: + clientUsername: drop + headers: + defaultMode: keep + names: + User-Agent: keep + Authorization: drop + Content-Type: keep + Referer: keep + +metrics: + prometheus: + buckets: + - 0.1 + - 0.3 + - 1.2 + - 5.0