Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Gaining insights with metrics
Collect metrics to gain insights about state and activities of a running instance of Red Hat build of Keycloak.
Red Hat build of Keycloak has built in support for metrics. This chapter describes how to enable and configure server metrics.
2.1. Enabling Metrics Copiar enlaceEnlace copiado en el portapapeles!
It is possible to enable metrics using the build time option metrics-enabled
:
bin/kc.[sh|bat] start --metrics-enabled=true
bin/kc.[sh|bat] start --metrics-enabled=true
2.2. Querying Metrics Copiar enlaceEnlace copiado en el portapapeles!
Red Hat build of Keycloak exposes metrics at the following endpoint on the management interface at:
-
/metrics
For more information about the management interface, see Configuring the Management Interface. The response from the endpoint uses a application/openmetrics-text
content type and it is based on the Prometheus (OpenMetrics) text format. The snippet below is an example of a response:
2.3. Next steps Copiar enlaceEnlace copiado en el portapapeles!
Read the chapters Monitoring performance with Service Level Indicators and Troubleshooting using metrics to see how to use the metrics.
2.4. Relevant options Copiar enlaceEnlace copiado en el portapapeles!
Value | |
---|---|
Available only when metrics are enabled |
|
Available only when metrics are enabled |
|
Available only when metrics are enabled | |
🛠
|
|