From 77e768b76b60aa19c6408247c4a5b87f148f8ee2 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Thu, 2 Nov 2023 21:22:22 +0000 Subject: [PATCH] Add prometheus-traefik.yml --- prometheus-traefik.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 prometheus-traefik.yml diff --git a/prometheus-traefik.yml b/prometheus-traefik.yml new file mode 100644 index 00000000..20995f30 --- /dev/null +++ b/prometheus-traefik.yml @@ -0,0 +1,11 @@ +# To be used in conjunction with grafana.yml +# Please be very cautious, prometheus is not authenticated by default +version: "3.9" +services: + execution: + labels: + - traefik.enable=true + - traefik.http.routers.${PROM_HOST:-prom}.entrypoints=web,websecure + - traefik.http.routers.${PROM_HOST:-prom}.rule=Host(`${PROM_HOST:-prom}.${DOMAIN}`) + - traefik.http.routers.${PROM_HOST:-prom}.tls.certresolver=letsencrypt + - traefik.http.services.${PROM_HOST:-prom}.loadbalancer.server.port=9090