[id='proc-configuring-kafka-bridge-metrics-{context}']
= Configuring metrics

[role="_abstract"]
Enable metrics for the Kafka Bridge by setting the `KAFKA_BRIDGE_METRICS_ENABLED` environment variable.

.Prerequisites

* xref:proc-downloading-kafka-bridge-{context}[The Kafka Bridge installation archive is downloaded].

.Procedure

. Set the environment variable for enabling metrics to `true`.
+
.Environment variable for enabling metrics

[source,properties]
----
KAFKA_BRIDGE_METRICS_ENABLED=true
----

. Run the Kafka Bridge script to enable metrics.
+
.Running the Kafka Bridge to enable metrics
[source,shell]
----
./bin/kafka_bridge_run.sh --config-file=<path>/application.properties
----
+
With metrics enabled, you can use `GET /metrics` with the `/metrics` endpoint to retrieve Kafka Bridge metrics in Prometheus format.