# MSK Zookeeper Cannot Fetch Metrics

**URL:** <https://ask.lenses.io/t/msk-zookeeper-cannot-fetch-metrics/163>\
**Category:** Lenses\
**Created:** [December 29, 2023, 12:52pm UTC](https://ask.lenses.io/t/msk-zookeeper-cannot-fetch-metrics/163 "2023-12-29T12:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejhon\_s](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/ejhon_s/32/77_2.png) [@ejhon\_s](https://ask.lenses.io/u/ejhon_s)\
**Post date:** [December 29, 2023, 12:52pm UTC](https://ask.lenses.io/t/msk-zookeeper-cannot-fetch-metrics/163/1 "2023-12-29T12:52:18Z")

</div>

I’m trying to fetch Zookeeper metrics, but I’m getting the error message ‘Cannot fetch metrics in time.’ However, I can ping Zookeeper and access it via curl. How can I resolve this issue?

---

<div class="post-metadata">

**Author:** ![grudtnerv](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/grudtnerv/32/101_2.png) [@grudtnerv](https://ask.lenses.io/u/grudtnerv)\
**Post date:** [December 29, 2023, 12:54pm UTC](https://ask.lenses.io/t/msk-zookeeper-cannot-fetch-metrics/163/2 "2023-12-29T12:54:16Z")

</div>

Hello ejhon\_s,

The Lenses only connects to the MSK Zookeeper and does not fetch its metrics; this is also not something that will interfere with Lenses’ operation. The ‘Cannot fetch metrics in time’ issue can be resolved by creating the Zookeeper connection via Lenses-CLI and changing the ‘zookeeperSessionTimeout’ parameter. The command to configure Zookeeper is:

`lenses-cli connections update --name zookeeper --connection-config '[{"key":"zookeeperUrls","value":["dd-us-center.aws-us.domain.com:2181"]},{"key":"metricsType","value":"JMX"},{"key":"metricsPort","value":9585},{"key":"zookeeperConnectionTimeout","value":70000}, {"key":"zookeeperSessionTimeout","value":70000}]'`

Ensure that Lenses-CLI is in the same version as Lenses. Change the values of “zookeeperUrls” to your Zookeeper; you can use the “–debug” parameter if an error occurs and you want to know what it is.
