Skip to content
BleemeoBleemeo

Authentik

Prometheus Metrics

Authentik is an open-source identity provider that exposes native Prometheus metrics by default on port 9000.

Prometheus metrics are available out of the box at http://localhost:9000/metrics. No service-side configuration is needed.

Terminal window
sudo tee /etc/glouton/conf.d/99-authentik.conf > /dev/null << 'EOF'
metric:
prometheus:
targets:
- url: "http://localhost:9000/metrics"
name: "authentik"
allow_metrics:
- "authentik_*"
- "django_http_requests_total_by_method"
- "django_http_responses_total_by_status"
- "python_gc_objects_collected_total"
- "process_resident_memory_bytes"
EOF

If the metrics endpoint requires authentication in your setup, add an Authorization header to the target:

metric:
prometheus:
targets:
- url: "http://localhost:9000/metrics"
name: "authentik"
headers:
Authorization: "Bearer <your-api-token>"
allow_metrics:
- "authentik_*"
- "django_http_requests_total_by_method"
- "django_http_responses_total_by_status"
- "python_gc_objects_collected_total"
- "process_resident_memory_bytes"
MetricDescription
authentik_outpost_connectionNumber of active outpost connections
authentik_main_requestsTotal HTTP requests handled by Authentik
authentik_flows_cachedNumber of cached authentication flows
django_http_requests_total_by_methodTotal HTTP requests by method (GET, POST, etc.)
django_http_responses_total_by_statusTotal HTTP responses by status code
python_gc_objects_collected_totalPython garbage collector objects collected
process_resident_memory_bytesResident memory size of the Authentik process