Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Use internal EC2 instance ID for datadog Host value #931

Closed
bbangert opened this issue Jun 22, 2017 · 1 comment
Closed

Use internal EC2 instance ID for datadog Host value #931

bbangert opened this issue Jun 22, 2017 · 1 comment

Comments

@bbangert
Copy link
Contributor

By default the datadog Python agent is picking up the machines external hostname and using it as the host value. This causes a mismatch in the Host values in Datadog, that also doesn't match the logging infra Host (internal hostname).

This value can be retrieved on startup from http://169.254.169.254/latest/meta-data/instance-id

@bbangert
Copy link
Contributor Author

While we're at it, we should log instance type as well, so we can make comparisons later if/when we need to change instance type. The meta-data service makes that available as ..../instance-type

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants