
* *: deduplicate boilerplate for importing related models Signed-off-by: Jens Langhammer <jens@goauthentik.io> * also auto-import .checks Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix error during prometheus metrics from #8435 Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
18 lines
491 B
Python
18 lines
491 B
Python
"""authentik admin app config"""
|
|
|
|
from prometheus_client import Gauge, Info
|
|
|
|
from authentik.blueprints.apps import ManagedAppConfig
|
|
|
|
PROM_INFO = Info("authentik_version", "Currently running authentik version")
|
|
GAUGE_WORKERS = Gauge("authentik_admin_workers", "Currently connected workers")
|
|
|
|
|
|
class AuthentikAdminConfig(ManagedAppConfig):
|
|
"""authentik admin app config"""
|
|
|
|
name = "authentik.admin"
|
|
label = "authentik_admin"
|
|
verbose_name = "authentik Admin"
|
|
default = True
|