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

  1. Set the build-time metrics-enabled option to true and rebuild optimized images before redeployment.
  2. Scrape /metrics on each instance’s management interface; keep that interface off the public ingress.
  3. 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.

Official documentation

Have Pilae operate Keycloak

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.