> For the complete documentation index, see [llms.txt](https://docs.ostara.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ostara.dev/documentation/agents/configuration/service-discovery/zookeeper.md).

# ZooKeeper

ZooKeeper Service Discovery can be used to discover instances on ZooKeeper that were published by Spring Cloud ZooKeeper.

### Enabling Discovery

You can enable ZooKeeper discovery in the configuration file by setting `ostara.agent.main.zookeeper.enabled` to `true`

### &#x20;Configuration Table

<table><thead><tr><th>Name</th><th width="220">Default Value</th><th align="center">Description</th></tr></thead><tbody><tr><td><code>ostara.agent.main.zookeeper.enabled</code></td><td><code>false</code></td><td align="center">Whether ZooKeeper service discovery is enabled or not</td></tr><tr><td><code>ostara.agent.main.zookeeper.connection-string</code></td><td></td><td align="center">The Connection String that is needed to connect to Apache ZooKeeper. This is a comma-separated list of hostname:port pairs. For example, <code>localhost:2181,localhost:2182,localhost:2183.</code> This should contain a list of all ZooKeeper instances in the ZooKeeper quorum</td></tr><tr><td><code>ostara.agent.main.zookeeeper.rootNode</code></td><td><code>/services</code></td><td align="center">The node where services and service instances are kept. This defaults to the Curator recipe default of <code>/services</code>, and should not be changed under normal conditions</td></tr><tr><td><code>ostara.agent.main.zookeeper.actuator-path</code></td><td><code>/actuator</code></td><td align="center">The context path of actuator </td></tr><tr><td><code>ostara.agent.main.zookeeper.metadata</code></td><td><code>{}</code></td><td align="center">The metadata that the agent should filter by when seeking agents. If the map is empty, the filter will not be applied</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ostara.dev/documentation/agents/configuration/service-discovery/zookeeper.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
