Prometheus metrics for authentik.

This commit is contained in:
2023-08-16 15:16:10 +01:00
parent 6bb31d9286
commit 35ac7c7ad6

View File

@@ -9,6 +9,9 @@ job "authentik" {
port "https" { port "https" {
to = 9443 to = 9443
} }
port "metrics" {
to = 9300
}
} }
task "server" { task "server" {
@@ -18,7 +21,8 @@ job "authentik" {
image = "ghcr.io/goauthentik/server:2023.6.1" image = "ghcr.io/goauthentik/server:2023.6.1"
ports = [ ports = [
"http", "http",
"https" "https",
"metrics"
] ]
command = "server" command = "server"
} }
@@ -47,6 +51,11 @@ job "authentik" {
"traefik.http.routers.authentik.entryPoints=websecure", "traefik.http.routers.authentik.entryPoints=websecure",
] ]
} }
service {
name = "authentik-metrics"
port = "metrics"
tags = [ "metrics" ]
}
} }
task "worker" { task "worker" {