When the Agent runs as a container, Autodiscovery tries to discover other containers based on default configuration files named auto_conf.yaml. You can find these files in the corresponding conf.d/<INTEGRATION>.d/ folders for the following integrations:
Each auto_conf.yaml file provides a default configuration. To override this, you can add a custom configuration in Kubernetes annotations or Docker Labels.
Kubernetes annotations and Docker Labels take precedence over auto_conf.yaml files, but auto_conf.yaml files take precedence over Autodiscovery configuration set in the Datadog Operator and Helm charts. To use Datadog Operator or Helm to configure Autodiscovery for an integration in the table on this page, you must disable auto-configuration.