> 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
