diff --git a/roles/alpina/collections/services/monitoring/templates/prometheus_config/prometheus.yml.j2 b/roles/alpina/collections/services/monitoring/templates/prometheus_config/prometheus.yml.j2 index 39bf78a..c13bb56 100644 --- a/roles/alpina/collections/services/monitoring/templates/prometheus_config/prometheus.yml.j2 +++ b/roles/alpina/collections/services/monitoring/templates/prometheus_config/prometheus.yml.j2 @@ -18,6 +18,10 @@ scrape_configs: static_configs: - targets: ["{{ ansible_host }}:9110"] + - job_name: "traefik" + static_configs: + - targets: ["{{ ansible_host }}:8082"] + - job_name: "loki" static_configs: - targets: ["loki:3100"] diff --git a/roles/alpina/collections/services/traefik/templates/traefik.yml.j2 b/roles/alpina/collections/services/traefik/templates/traefik.yml.j2 index 6b702c2..7b5ba98 100644 --- a/roles/alpina/collections/services/traefik/templates/traefik.yml.j2 +++ b/roles/alpina/collections/services/traefik/templates/traefik.yml.j2 @@ -18,6 +18,12 @@ entryPoints: address: ":443" http3: advertisedPort: 443 + metrics: + address: ":8082" + +metrics: + prometheus: + entryPoint: metrics certificatesResolvers: letsencrypt: