Observability: Grafana, Prometheus, Loki and Tempo
The observability component installs Prometheus (metrics), Loki (logs),
Tempo (traces) and Grafana, with the three already added to Grafana as data
sources. This page covers reaching Grafana and signing in.
Open Grafana
| Routing mode | URL |
|---|---|
subdomain (default) | https://grafana.<base_domain_name>/ |
path | https://<base_domain_name>/grafana/ |
Grafana opens on its own login form. Nothing sends you to Keycloak first.
Sign in
Local admin
Enter admin and its password on the login form. The password is generated
at the first install and kept in a Secret:
kubectl -n monitoring get secret grafana-admin-credentials -o jsonpath='{.data.password}' | base64 -d; echo
To choose it yourself, see Admin passwords.
Sign in with Keycloak
Click Sign in with Keycloak on the login form and sign in with a
platform realm account. The first one is platform-admin; its temporary
password, which must be changed at first login, is in a Secret:
kubectl -n keycloak get secret platform-bootstrap-admin -o jsonpath='{.data.value}' | base64 -d; echo
Members of platform-admins are Grafana Admins; every other user is a Viewer.
The role is set again at each login, so leaving the group removes Admin.
Signing out of Grafana ends only Grafana's session, not the Keycloak one.
| Setting | Default | Effect |
|---|---|---|
observability_grafana_sso | keycloak_enabled | false removes the Keycloak button; only the local admin signs in |
observability_grafana_allowed_groups | [] | Keycloak groups Grafana admits; empty admits every platform realm user |
On Kubernetes (the Helm stack) Grafana takes these settings on a fresh install
of observability only, and install prints a notice while the running
Grafana is out of date. Apply them with teardown observability, then
install observability. On OpenShift every install applies them.
Without the gateway
When the gateway or DNS is down, reach Grafana through a port-forward and sign in as the local admin:
# Kubernetes
kubectl -n monitoring port-forward svc/kube-prometheus-stack-grafana 3000:80
# OpenShift
kubectl -n monitoring port-forward svc/grafana-platform-service 3000:3000
Then open http://localhost:3000/.
Check it
./es_auto_installer.sh validate observability checks that:
/loginshows the login form through the gateway, without a redirect;- Sign in with Keycloak starts at the
platformrealm; - Grafana's own pod reaches Keycloak with its client credentials. When this
fails, the button ends in "Login failed: Failed to get token from provider".
The check names the cause: rejected credentials, or no route to Keycloak
(DNS, or a
no_proxythat does not cover.svcand.cluster.local).