How to Import Kubernetes Labels as Tags | Datadog Tips & Tricks

How to Import Kubernetes Labels as Tags | Datadog Tips & Tricks

May 19, 2020

In this video, you’ll learn how to turn Kubernetes node labels and pod labels into tags in Datadog in order to correlate metrics, traces, and logs back to Kubernetes deployments. To try this out for free for 14 days, sign up at https://dtdg.co/tips

Using labels for Kubernetes objects—such as pods or nodes—is key to organizing and making sense of your deployments. Datadog can automatically bring your Kubernetes labels from your clusters into the Datadog platform as tags, regardless of whether you’re using on-prem Kubernetes or a cloud-based service such as AKS, EKS, or GKE.

By extracting labels as tags, Datadog provides more contextual data around the metrics, traces, and logs captured from your environment. This allows you to group and slice data based on tag values, and also allows you to view data scoped to specific deployments or clusters. If something ever goes wrong in your environment—such as a high error rate or latency—you can use tags to track that data back to exactly where it’s originating from, minimizing your time to resolution.