diff --git a/authelia/authelia.yaml b/authelia/authelia.yaml index eb6a98d..f9e0bfa 100644 --- a/authelia/authelia.yaml +++ b/authelia/authelia.yaml @@ -66,6 +66,13 @@ spec: value: /run/authelia/secrets/oidc.hmac_secret - name: AUTHELIA_IDENTITY_PROVIDERS_OIDC_ISSUER_PRIVATE_KEY_FILE value: /run/authelia/secrets/oidc.issuer_private_key + ports: + - containerPort: 9091 + name: http + protocol: TCP + - containerPort: 9959 + name: metrics + protocol: TCP startupProbe: httpGet: port: 9091 diff --git a/authelia/configuration.yml b/authelia/configuration.yml index ecf6434..36186ca 100644 --- a/authelia/configuration.yml +++ b/authelia/configuration.yml @@ -157,3 +157,7 @@ storage: username: authelia.authelia tls: skip_verify: false + +telemetry: + metrics: + enabled: true diff --git a/victoria-metrics/scrape.yml b/victoria-metrics/scrape.yml index 426306f..410be61 100644 --- a/victoria-metrics/scrape.yml +++ b/victoria-metrics/scrape.yml @@ -359,3 +359,21 @@ scrape_configs: regex: '8008' - source_labels: [__meta_kubernetes_pod_name] target_label: instance + +- job_name: authelia + kubernetes_sd_configs: + - role: pod + namespaces: + names: + - authelia + selectors: + - role: pod + label: app.kubernetes.io/name=authelia + relabel_configs: + - action: keep + source_labels: + - __meta_kubernetes_pod_container_port_name + regex: metrics + - source_labels: + - __meta_kubernetes_pod_name + target_label: instance