Zookeeper Config Source (Alpha)
Use the Zookeeper config source to retrieve data from
Zookeeper and inject it into your collector configuration.
Configuration
Under the config_sources:
use zookeeper:
or zookeeper/<name>:
to create a
Zookeeper config source. The following parameters are available to customize
Zookeeper config sources:
config_sources:
zookeeper:
# endpoints is an array of Zookeeper server addresses. Config source will
# try to connect to these endpoints to access Zookeeper clusters.
endpoints: [localhost:2181]
# timeout sets the amount of time for which a session is considered valid after
# losing connection to a server. Within the session timeout it's possible to
# reestablish a connection to a different server and keep the same session.
timeout: 10s
If multiple paths are needed, create different instances of the config
source. For example:
config_sources:
# Assuming that the environment variable ZOOKEEPER_ADDR is defined and
# different secrets are on the same server but at different paths.
zookeeper:
endpoints: [$ZOOKEEPER_ADDR]
zookeeper/another_cluster:
endpoints: [$ZOOKEEPER_2_ADDR]
timeout: 15s
# Both Zookeeper config sources can be used via their full name. Hypothetical example:
components:
component_using_zookeeper:
token: $zookeeper:/data/token
component_using_zookeeper_another_cluster:
token: $zookeeper/another_cluster:/data/token