- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The Datadog Agent collects potential host names from many different sources. Run the Agent’s status subcommand to see all names the Agent is detecting.
...
Hostnames
=========
hostname: my.special.hostname
agent-hostname: my.special.hostname
ec2-hostname: ip-192-0-0-1.internal
instance-id: i-deadbeef
socket-hostname: myhost
socket-fqdn: myhost.mydomain
...
From these names, a canonical name is chosen for the host. The Agent uses this name to identify itself to Datadog. The other names are submitted as well, but only as candidates for aliasing.
The canonical hostname is chosen according to the following rules. The first match is selected.
hostname -f
on Linux): If the DNS hostname is not an EC2 default, for example: ip-192-0-0-1
.If the name is recognized as a common non-unique name (for example, localhost.localdomain
), the current rule fails and passes through to the next.
See Hostname detection logic for details on how the Agent determines the hostname.
When pulling information on your AWS hosts from the Datadog API, the following attributes display based on availability:
Attribute | Description |
---|---|
aws_id | The instance id, fallback on host if no instance id |
aws_name | The cloud providername tag |
display_name | The canonical hostname (value of host identifier) |
A single host running in EC2 might have an instance ID (i-abcd1234), a generic hostname provided by EC2 based on the host’s IP address (ip-192-0-0-1), and a meaningful hostname provided by an internal DNS server or a config-managed hosts file (myhost.mydomain). Datadog creates aliases for host names when there are multiple uniquely identifiable names for a single host.
The names collected by the Agent (detailed above) are added as aliases for the chosen canonical name.
See the list of all hosts in your account from the Infrastructure List. The aliases associated with each host are available in the inspect panel, which is accessed by clicking the Inspect button while hovering over a host row:
Note: These aliases are not available for searching or filtering. They are available only in the inspect panel mentioned above.
There are differences in hostname resolution between Agent v5 and Agent v6.
When upgrading from Agent v5 to Agent v6, there might be a difference in the hostname reported by your Agent. To resolve the system hostname Agent v5 uses the hostname -f
command while Agent v6 uses the Golang API os.Hostname()
. On upgrades, the Agent hostname could change from a Fully-Qualified Domain Name (FQDN) to a short hostname, for example:
sub.domain.tld
–> sub
Note: Starting from Agent v6.3, the hostname_fqdn
configuration option was introduced that allows Agent v6 to have the same behavior as Agent v5. This flag is disabled by default on version 6.3+. See the example datadog.yaml for enabling this option.
Starting with v6.3.0, the Agent logs the warning below if you’re affected by the change:
DEPRECATION NOTICE: The agent resolved your hostname as <HOSTNAME>. However in a future version, it will be resolved as <FQDN> by default. To enable the future behavior, please enable the `hostname_fqdn` flag in the configuration.
You are not affected if any of the following are true:
DD_HOSTNAME
environment variable.cat /proc/sys/kernel/hostname
and hostname -f
are the same.If you’re affected by this change, Datadog recommends taking the following action when you upgrade your Agent:
hostname_fqdn
option in the Agent’s main configuration file. This ensures that you keep the same hostname.hostname_fqdn
to false
. That said, Datadog recommends you switch hostname_fqdn
to true
whenever possible.On Agent v5, the Windows Agent reported the unqualified hostname by default. To maintain backward compatibility, this behavior is preserved with Agent v6. The new flag hostname_fqdn
remains disabled by default on Windows, and will remain disabled by default on future v6 versions.
The Windows Agent honors the configuration flag starting with v6.5. Setting hostname_fqdn
to true results in the Windows Agent reporting the fully qualified hostname.
By default, the recommended action is to do nothing. This preserves the existing behavior, especially if upgrading from Agent v5.
If you want to have Windows hosts specifically report fully qualified host names, then add hostname_fqdn
set to true
in your Agent’s main configuration file.
Only affects Agents running on GCE
By default, Agent v6 uses the instance’s hostname provided by GCE. This matches the behavior of Agent v5.5.1+ if gce_updated_hostname
is set to true in datadog.conf
.
If you’re upgrading from Agent v5 with gce_updated_hostname
unset or set to false, and the hostname of the Agent is not hardcoded in datadog.conf
/datadog.yaml
, the reported hostname on Datadog changes from the GCE instance name
to the full GCE instance hostname
(which includes the GCE project id).