Prometheus metrics for authentik.
This commit is contained in:
@@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user