about summary refs log tree commit diff
path: root/bundles/go-away/files/traefik.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/go-away/files/traefik.yaml')
-rw-r--r--bundles/go-away/files/traefik.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/go-away/files/traefik.yaml b/bundles/go-away/files/traefik.yaml
index e44a842..a8fcb9d 100644
--- a/bundles/go-away/files/traefik.yaml
+++ b/bundles/go-away/files/traefik.yaml
@@ -4,6 +4,10 @@ http:
       loadBalancer:
         servers:
           - url: http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("go-away/port")}
+    go-away-metrics:
+      loadBalancer:
+        servers:
+          - url: http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("go-away-metrics/port")}
 
   routers:
     gzr-im:
@@ -26,3 +30,11 @@ http:
         - tls-redirect@file
       tls:
         certResolver: le
+
+    go-away-metrics:
+      rule: Path(`/metrics/go-away`)
+      entryPoints:
+        - metrics
+      service: go-away-metrics
+      middlewares:
+        - replacepath-metrics@docker