Este conteúdo não está disponível no idioma selecionado.
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
				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=true2.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:
			
2.3. Next steps
Read the chapters Monitoring performance with Service Level Indicators and Troubleshooting using metrics to see how to use the metrics.
2.4. Relevant options
| Value | |
|---|---|
| 
 
 Available only when metrics are enabled | 
								 | 
| 
 
 Available only when metrics are enabled | 
								 | 
| 
 
 Available only when metrics are enabled | |
| 🛠 
 | 
								 |