datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

A way to disable default integrations on startup

Open etherandrius opened this issue 6 years ago • 2 comments

Is there a way to completely disable the default integrations on startup ? Specifically etcds auto_conf.yaml and ntps conf.yaml.defaults files from being created ?

Things I tried:

  • Having a file already on the pod (file gets overwritten when the pod starts)
  • Deleting files from base image like here (we repackage the image in order to do this)

Context: Agent is deployed as daemonSet.

etherandrius avatar May 29 '20 17:05 etherandrius

Hi @etherandrius

You can simply mount an emptyDir (https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) in the /etc/datadog-agent/conf.d/etcd.d and /etc/datadog-agent/conf.d/ntp.d folders, if you want to get rid of all files in these folders. Or, you can mount blank files from config map in place of the files you want to remove.

Simon

Simwar avatar Jun 08 '20 15:06 Simwar

Thanks we ended up removing the integrations on the containers startups as follows agent integration remove datadog-ntp -r -c /etc/datadog-agent/; agent integration remove datadog-etcd -r -c /etc/datadog-agent/; agent run -c /etc/datadog-agent/

But good to know for the future

etherandrius avatar Jun 08 '20 15:06 etherandrius