Advanced agent configuration
The main Datadog agent configuration file, datadog.yaml
, can be updated to meet your specific monitoring requirements. By default, only api_key
is set in it. A datadog.yaml
file used in a real-life environment would have more options set.
We will see some of the important configuration items that are usually leveraged to fine-tune the monitoring infrastructure:
proxy
: If the outbound traffic to the internet has to go through a proxy, this option needs to be configured. Typical proxy settings forhttp
,https
, andno_proxy
are supported.hostname
: If a specific hostname has to be used for reporting, it is set using this option. By default, the hostname is auto-detected using tools available at the operating system level.tags
: A very important option that is always used to tag the metrics reported by the agent. Multiple key/value pairs can be specified.collect_ec2_tags
: By enabling this option, the AWS EC2 node tags can be collected...