diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-23 14:16:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-23 14:17:02 +0100 |
| commit | bbee9eb8f939ac71d864ec019e00987fc4a453aa (patch) | |
| tree | cf678775bae6ef28be6e36a9996a82e23a68bc96 | |
| parent | 8d408a7ca049793e60266e041b2878e3ccc2d592 (diff) | |
traefik: metrics
Signed-off-by: Robert Günzler <r@gnzler.io>
| -rw-r--r-- | bundles/traefik/files/metrics.yaml | 8 | ||||
| -rw-r--r-- | bundles/traefik/items.py | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bundles/traefik/files/metrics.yaml b/bundles/traefik/files/metrics.yaml new file mode 100644 index 0000000..817e6cc --- /dev/null +++ b/bundles/traefik/files/metrics.yaml @@ -0,0 +1,8 @@ +http: + routers: + traefik-metrics: + entrypoints: metrics + rule: Path(`/metrics/traefik`) + service: prometheus@internal + middlewares: + - replacepath-bare@file diff --git a/bundles/traefik/items.py b/bundles/traefik/items.py index ecb3d66..50de817 100644 --- a/bundles/traefik/items.py +++ b/bundles/traefik/items.py @@ -9,6 +9,7 @@ files = { "mode": "0600", "triggers": {"svc_s6rc:traefik:restart"}, }, + "/etc/traefik/metrics.yaml": {}, "/etc/traefik/tls-redirect.yaml": {}, "/etc/traefik/common-middlewares.yaml": { "content_type": "mako", |