Best practices
The following are some of the best practices to be followed while monitoring containers using Datadog:
- Run the Datadog Agent as a container for the easy discovery of application containers and flexibility. Even if the Datadog Agent may have to be run at the host level for some reason, running it as a container on the same host might be acceptable considering the operational benefits that it brings.
- In a Kubernetes environment, don't try to access container logs directly via Docker integration; instead, install the Datadog Agent on the Kubernetes cluster and configure it to collect logs.
- Though
kubectl
and Kubernetes Dashboard can be used to view Kubernetes cluster resources, making those available in Datadog will help to increase the visibility of their availability and health.