Keycloak monitoring
Scrape Keycloak’s management endpoint and baseline login traffic before setting alerts.
Last updated
On this page (5)
Keycloak · Monitoring
Before you start
- Self-hosted Keycloak with access to build/start options.
- Prometheus with private reachability to each instance.
Procedure
- Set the build-time metrics-enabled option to true and rebuild optimized images before redeployment.
- Scrape /metrics on each instance’s management interface; keep that interface off the public ingress.
- Enable http-metrics-histograms-enabled if percentile alerting is needed, then baseline request rates and latency under representative login traffic.
Verify the result
- All replicas are individually UP and metrics move during scripted staging logins.
- A deliberately withdrawn scrape target triggers the expected alert; management metrics are not reachable from public ingress.
