about summary refs log tree commit diff
path: root/bundles
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bundles/traefik/files/metrics.yaml8
-rw-r--r--bundles/traefik/items.py1
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",