# How to enable the metrics in rest proxy

**URL:** https://forum.confluent.io/t/how-to-enable-the-metrics-in-rest-proxy/11591
**Category:** REST Proxy
**Created:** [27 September 2024 12:05 UTC](https://forum.confluent.io/t/how-to-enable-the-metrics-in-rest-proxy/11591 "2024-09-27T12:05:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pkinuk](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@pkinuk](https://forum.confluent.io/u/pkinuk)
#### Post date: [27 September 2024 12:05 UTC](https://forum.confluent.io/t/how-to-enable-the-metrics-in-rest-proxy/11591/1 "2024-09-27T12:05:15Z")

</div>

I’ve gone through Confluent Rest Proxy [monitoring](https://docs.confluent.io/platform/current/kafka-rest/production-deployment/rest-proxy/monitoring.html) and [configuraiton](https://docs.confluent.io/platform/current/kafka-rest/production-deployment/rest-proxy/config.html), but I’m still no idea how to expose the metric in rest proxy.

The confluentinc/cp-kafka-connect image is deployed to k8s cluster. And it routes incoming traffic to Confluent cloud kafka. All I want is:

1. Expose the metrics through rest proxy api endpoints (like the springboot actuator/prometheus endpoint), this enables Prometheus scraping metrics from the endpoint. I totally don’t understand Rest Proxy monitoring page. Would you please show me the api link for how to access the metrics?
2. 

> `metric.reporters`

> A list of classes to use as metrics reporters. Implementing the `MetricReporter` interface allows plugging in classes that will be notified of new metric creation. The JmxReporter is always included to register JMX statistics.

Where can I find the implementation of MetricReporter? I googled it but none of them relates to Confluent MetricReporter.

Thank you in advance

---

<div class="post-metadata">

### Author: ![Dllipwest](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@Dllipwest](https://forum.confluent.io/u/Dllipwest)
#### Post date: [7 October 2024 12:45 UTC](https://forum.confluent.io/t/how-to-enable-the-metrics-in-rest-proxy/11591/2 "2024-10-07T12:45:23Z")

</div>

If you’re looking for a smooth way to expose metrics for Prometheus, consider exploring the JmxReporter that comes with Confluent; it can help register those metrics. You might find it helpful to check GitHub for some implementations of MetricReporter, even if they’re not directly related to Confluent—sometimes, seeing how others have approached it can spark some ideas! I recently started using [4G proxy](https://proxidize.com/proxy-server/mobile-proxy) for my mobile projects, and they’ve been incredibly reliable! It’s been a lifesaver when working with different networks.

---

<div class="post-metadata">

### Author: ![pkinuk](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@pkinuk](https://forum.confluent.io/u/pkinuk)
#### Post date: [8 October 2024 08:16 UTC](https://forum.confluent.io/t/how-to-enable-the-metrics-in-rest-proxy/11591/3 "2024-10-08T08:16:36Z")

</div>

Hi @Dllipwest ,

Thank you for replying. I’ve found the [jmxReporter github](https://github.com/confluentinc/jmx-monitoring-stacks/tree/main/jmxexporter-prometheus-grafana) and a details instruction for how to [enable rest proxy metric](https://www.confluent.io/en-gb/blog/monitor-kafka-clusters-with-prometheus-grafana-and-confluent/)

I can successfully enable the metrics for rest proxy deployed to k8s cluster.
