{"action":"opened","issue":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2672","repository_url":"https://api.github.com/repos/DataDog/datadog-agent","labels_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2672/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2672/comments","events_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/2672/events","html_url":"https://github.com/DataDog/datadog-agent/issues/2672","id":381185424,"node_id":"MDU6SXNzdWUzODExODU0MjQ=","number":2672,"title":"Disabling default auto-discovery?","user":{"login":"mf-lit","id":9348839,"node_id":"MDQ6VXNlcjkzNDg4Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/9348839?v=4","gravatar_id":"","url":"https://api.github.com/users/mf-lit","html_url":"https://github.com/mf-lit","followers_url":"https://api.github.com/users/mf-lit/followers","following_url":"https://api.github.com/users/mf-lit/following{/other_user}","gists_url":"https://api.github.com/users/mf-lit/gists{/gist_id}","starred_url":"https://api.github.com/users/mf-lit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mf-lit/subscriptions","organizations_url":"https://api.github.com/users/mf-lit/orgs","repos_url":"https://api.github.com/users/mf-lit/repos","events_url":"https://api.github.com/users/mf-lit/events{/privacy}","received_events_url":"https://api.github.com/users/mf-lit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T14:29:05Z","updated_at":"2018-11-15T14:29:05Z","closed_at":null,"author_association":"NONE","body":"I've noticed that a subset of the built-in DataDog plugins will auto-discover by default:\r\n\r\n```\r\n $  find /etc/datadog-agent -name auto_conf.yaml\r\n/etc/datadog-agent/conf.d/kubernetes_state.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/consul.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/couchbase.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/mcache.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/coredns.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/couch.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/redisdb.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/kyototycoon.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/riak.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/etcd.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/kube_dns.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/elastic.d/auto_conf.yaml\r\n/etc/datadog-agent/conf.d/tomcat.d/auto_conf.yaml\r\n```\r\n\r\nI'm curious if there is some way to disable these individually? One way would be just to delete the relevant auto_conf.yaml of course, but when using the datadog docker image, this simple act requires rebuilding the image - this seems a bit heavy for such a simple change. I'm wondering if it's possible to do it with an Envar or parameter or something?\r\n\r\nFor what it's worth, the reason I ask this is because we run _a lot_ of redis containers across our test environments, and all of these are being unnecessarily monitored having a significant impact on memory usage by the agent.\r\n\r\nI'd prefer to have auto discovery disabled by default, and enable it adhoc by adding the relevant annotations to the kubernetes deployments we have for redis. This is exactly what we do for Apache, Nginx and MySQL, all of which do not default to auto-discovery."}}
{"actor":{"display_login":"mf-lit"}}