Repository navigation
Replies: 1 comment 1 reply
|
Same thing. Keycloak 26.3.3. I tried set values but no luck. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am currently trying to implement the Grafana dashboards for Keycloak by following the documentation starting from:
https://www.keycloak.org/observability/grafana-dashboards
Setup
In my Dockerfile I enabled the following environment variables:
In the Kubernetes operator definition I added:
The /metrics endpoint is reachable and I can see some metrics exposed. Scraping is handled by Prometheus with the following configuration:
I imported the dashboards from the repo keycloak/keycloak-grafana-dashboard (Side note: the git clone command in the docs seems to be incorrect).
Problem
Many of the panels in Grafana remain empty due to the
namespaceandrealmGrafana variables being empty, and it seems that the corresponding labels are missing from the Prometheus metrics.For example, the “Password Validations Rate” panel uses the following query:
irate(keycloak_credentials_password_hashing_validations_total{namespace="$namespace", realm="$realm"}[$__rate_interval])However, when I manually check the
/metricsendpoint of Keycloak, I don’t see any metric starting withkeycloak_.Question
Am I missing something in the configuration to ensure that those labels (namespace, realm, etc.) are included so that the dashboards display correctly?
Environment
Keycloak version: 26.3.4
Deployment: Kubernetes Operator
Metrics scraping: Prometheus
Thanks in advance for your help!
All reactions