v-m: Scrape metrics from Authelia

Authelia exposes Prometheus metrics from a different server socket,
which is not enabled by default.
This commit is contained in:
2024-02-27 06:41:52 -06:00
parent e0b2b3f5ae
commit de72776e73
3 changed files with 29 additions and 0 deletions

View File

@@ -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