Table of Contents
How-to
Config minimally
[Main]
dd_url: https://app.datadoghq.com
api_key: <api-key>
hostname: nightly00-all-000-k
tags:
- role:couchbase
- cluster:yeonghoey
Reference
Setup
Management
Host Naming
- Datadog uniquely identify hosts by
hostname
- Host name cadidates (order of priority)
agent-hostname
: If a host name is explicitly set in the Agent configuration file.
hostname
: If the DNS host name is not an EC2 default (e.g. ip-192-0-0-1).
instance-id
: If the Agent can reach the EC2 metadata endpoint from the host.
hostname
: Fall back on the DNS host name even if it is an EC2 default.
- By documentation, with default configuration, my instance should have
hostname
, but always I got instance-id
.
ec2-hostname: ip-10-42-134-4.ap-northeast-1.compute.internal
local-ipv4: 10.42.134.4
socket-hostname: yeonghoey-cb-001
hostname: i-0ccfeb8b6dc2ce863
local-hostname: ip-10-42-134-4.ap-northeast-1.compute.internal
instance-id: i-0ccfeb8b6dc2ce863
socket-fqdn: localhost
- They say there is
alias
for other names, but it seems useless. Every graph features shows hostname
only.
- So, just always put
hostname
in /etc/dd-agent/datadog.conf
hostname: mymachine.mydomain
- Tags can be both only
name
values or key:value
pairs.
- Tags under
integrations
only takes effect integrations dashboard
tags:
- firsttag
- secondtag
- thirdtagregion:east
tags:
- region:nw
- application:database
- database:primary
- role:sobotka
Metrics
Topics