# Lenses is sending many requests against our MSK JMX endpoint

**URL:** <https://ask.lenses.io/t/lenses-is-sending-many-requests-against-our-msk-jmx-endpoint/470>\
**Category:** Lenses\
**Created:** [April 28, 2026, 8:54am UTC](https://ask.lenses.io/t/lenses-is-sending-many-requests-against-our-msk-jmx-endpoint/470 "2026-04-28T08:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kacaha8004](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kacaha8004](https://ask.lenses.io/u/kacaha8004)\
**Post date:** [April 28, 2026, 8:54am UTC](https://ask.lenses.io/t/lenses-is-sending-many-requests-against-our-msk-jmx-endpoint/470/1 "2026-04-28T08:54:46Z")

</div>

Hi Marios,  
do you know why Lenses sends so many JMX requests against MSK?

We’re seeing a high volume of JMX traffic from Lenses to the MSK cluster and want to understand whether this is expected behavior, configurable polling, or possibly something misconfigured on our side.

---

<div class="post-metadata">

**Author:** ![Patrick\_Polster](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/patrick_polster/32/179_2.png) [@Patrick\_Polster](https://ask.lenses.io/u/Patrick_Polster)\
**Post date:** [May 4, 2026, 8:47am UTC](https://ask.lenses.io/t/lenses-is-sending-many-requests-against-our-msk-jmx-endpoint/470/2 "2026-05-04T08:47:00Z")

</div>

Hi, yes, this can happen, and it is usually related to the broker metrics refresh interval.

Lenses collects broker metrics on a configurable interval via:

`lenses.interval.metrics.refresh.broker`

The default is around 5 seconds, which can be quite aggressive for MSK. For MSK, it is recommended to increase this interval to at least 30 seconds, or potentially higher depending on the size of the cluster and the number of exposed metrics.

The reason is that MSK exposes metrics via OpenMetrics/Prometheus, backed by `jmx_exporter` behind the scenes. Kafka brokers can expose a very large number of JMX metrics, sometimes hundreds of thousands, and scraping them too frequently can become slow and expensive.

So this is expected behavior rather than necessarily a misconfiguration, but the polling interval should be tuned for MSK environments.

[Configuration Reference | Lenses Docs](https://docs.lenses.io/latest/deployment/configuration/agent/configuration-reference#advanced)

---

<div class="post-metadata">

**Author:** ![kacaha8004](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kacaha8004](https://ask.lenses.io/u/kacaha8004)\
**Post date:** [May 4, 2026, 8:51am UTC](https://ask.lenses.io/t/lenses-is-sending-many-requests-against-our-msk-jmx-endpoint/470/3 "2026-05-04T08:51:36Z")

</div>

I will configure the setting. Thanks for the support !
