Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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 Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
Read the chapters Monitoring performance with Service Level Indicators and Troubleshooting using metrics to see how to use the metrics.
2.4. Relevant options Link kopierenLink in die Zwischenablage kopiert!
Value | |
---|---|
Available only when metrics are enabled |
|
Available only when metrics are enabled |
|
Available only when metrics are enabled | |
🛠
|
|