이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 20. Enabling Red Hat build of Keycloak Metrics
Red Hat build of Keycloak has built in support for metrics. This chapter describes how to enable and configure server metrics.
20.1. Enabling Metrics 링크 복사링크가 클립보드에 복사되었습니다!
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
20.2. Querying Metrics 링크 복사링크가 클립보드에 복사되었습니다!
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:
20.3. Available Metrics 링크 복사링크가 클립보드에 복사되었습니다!
The table below summarizes the available metrics groups:
| Metric | Description |
|---|---|
| System | A set of system-level metrics related to CPU and memory usage. |
| JVM | A set of metrics from the Java Virtual Machine (JVM) related to GC, and heap. |
| Database | A set of metrics from the database connection pool, if using a database. |
| HTTP | A set of global and individual metrics from the HTTP endpoints |
| Cache | A set of metrics from Infinispan caches. See Configuring distributed caches for more details. |
20.4. Relevant options 링크 복사링크가 클립보드에 복사되었습니다!
| Value | |
|---|---|
|
Available only when metrics are enabled |
|
|
Available only when metrics are enabled |
|
|
Available only when metrics are enabled | |
| 🛠
|
|