From 97f1eef2f8f5cf41f281fb147cd7e92f0d8ad40b Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 14 Nov 2024 14:01:47 +0500 Subject: [PATCH] Scrape authentik metrics --- roles/authentik/tasks/main.yml | 2 ++ roles/monitoring/templates/prometheus.yml.j2 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/roles/authentik/tasks/main.yml b/roles/authentik/tasks/main.yml index c98dea8..edec222 100644 --- a/roles/authentik/tasks/main.yml +++ b/roles/authentik/tasks/main.yml @@ -43,6 +43,7 @@ - name: authentik-redis - name: postgresql - name: haproxy + - name: monitoring user: root volumes: - authentik-media:/media @@ -93,6 +94,7 @@ networks: - name: authentik - name: haproxy + - name: monitoring volumes: - authentik-certs:/certs - /etc/letsencrypt/live/comfycamp.space/fullchain.pem:/certs/comfycamp.space/fullchain.pem:ro diff --git a/roles/monitoring/templates/prometheus.yml.j2 b/roles/monitoring/templates/prometheus.yml.j2 index c013f54..978a046 100644 --- a/roles/monitoring/templates/prometheus.yml.j2 +++ b/roles/monitoring/templates/prometheus.yml.j2 @@ -14,3 +14,6 @@ scrape_configs: scheme: http static_configs: - targets: ["minio:9000"] + - job_name: authentik + static_configs: + - targets: ["authentik-1:9300"]