Skip to content

Commit ae815b8

Browse files
committed
Merge branch 'haissam/sd-auto-conf-doc'
Conflicts: content/guides/servicediscovery.md
2 parents e24ba70 + edaf462 commit ae815b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/guides/servicediscovery.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ In case you need to match different templates with containers running the same i
173173
For example, if a container has this label configured as `com.datadoghq.sd.check.id: foobar`, it will look for a configuration template in the store under the key `datadog/check_configs/foobar/...`.
174174

175175

176+
### Using configuration files instead of a configuration store
177+
178+
If running a configuration store is not possible in your environment but shipping configuration files with the agent is, you can use the [conf.d/auto_conf folder](https://github.com/DataDog/dd-agent/tree/master/conf.d/auto_conf) to store configuration templates. The format is simple and looks like the typical YAML configuration file for checks. One additional field, `docker_images`, is required and identifies the container image(s) to which this configuration should be applied.
179+
Use existing files in this folder as an example.
180+
If you use this instead of a K/V store you still need to uncomment `service_discovery_backend: docker` in `datadog.conf`, but `sd_config_backend`, `sd_backend_host` and `sd_backend_port` must be omitted.
181+
182+
176183
### Kubernetes users
177184

178185
Service discovery is particularly useful for container platforms like Kubernetes where by default the user doesn't choose the node on which a container will be scheduled. With service discovery you can simply deploy the Agent container with a DaemonSet and declare your configuration templates for all the containers you plan to launch in the same cluster. To deploy the Agent, simply follow the instruction from the install page for Kubernetes.

0 commit comments

Comments
 (0)