| title | Kubernetes | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Monitor Kubernetes with the Datadog Agent or OpenTelemetry. | |||||||||||||||||||||||||||||||||||||||||||||||||
| aliases |
|
|||||||||||||||||||||||||||||||||||||||||||||||||
| further_reading |
|
{{< learning-center-callout header="Join an enablement webinar session" hide_image="true" btn_title="Sign Up" btn_url="https://www.datadoghq.com/technical-enablement/sessions/?tags.topics-0=Kubernetes">}} This foundation enablement session will focus on how Datadog can monitor Kubernetes. Learn how to configure Datadog for Kubernetes and how to get started. Explore the various views and tools Datadog offers to visualize and analyze your cluster and application metrics, traces, and logs. {{< /learning-center-callout >}}
To collect Kubernetes infrastructure metrics with OpenTelemetry instead of the Datadog Agent, see Kubernetes Metrics with OpenTelemetry.
You can install the Agent using either the Datadog Operator or Helm chart by following the in-app installation guide in Fleet Automation. This guided interface allows you to:
- Select your Kubernetes distribution (for example EKS, AKS, or GKE)
- Generate helm and kubectl commands with your API key prefilled
- Enable features such as APM, Log Management, tagging and other telemetry through UI-based configuration
{{< img src="agent/basic_agent_usage/agent_install_k8.png" alt="In-app installation steps for the Datadog Agent on Kubernetes." style="width:90%;">}}
The Datadog Operator flow installs the Datadog Operator and uses Custom Resources to configure your observability coverage.
The Helm Chart flow installs the Datadog components more directly and offers similar toggles for observability features.
Both options allow you to manage a configuration: the Datadog Operator or Helm chart creates the Datadog Agent DaemonSet, Cluster Agent Deployment, and all their dependencies for your Kubernetes-based monitoring.
See Supported Versions for the full list of Kubernetes versions supported by the Datadog Agent.
The in-app installation tool in Fleet Automation provides a guided way to build your configurations. You can also see the Kubernetes installation docs for steps on how to deploy and configure the Datadog Operator or Datadog Helm chart manually in your enviornment.
Datadog recommends that you use the Datadog Operator or the Datadog Helm Chart to deploy all the Kubernetes resources for you. If you need to deploy the all the manifests directly consult the full Kubernetes manual installation documentation.
For Agent commands, see the Agent Commands guides. For information on the Datadog Cluster Agent and its role, see Cluster Agent for Kubernetes.
{{< whatsnext desc="This section includes the following topics:">}} {{< nextlink href="/agent/kubernetes/installation">}}Installation: Install the Datadog Agent in a Kubernetes environment.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/configuration">}}Further Configuration: Collect events, override proxy settings, send custom metrics with DogStatsD, configure container allowlists and blocklists, and reference the full list of available environment variables.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/distributions">}}Distributions: Review base configurations for major Kubernetes distributions, including AWS Elastic Kubernetes Service (EKS), Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE), Red Hat OpenShift, Rancher, and Oracle Container Engine for Kubernetes (OKE).{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/apm">}}APM: Set up trace collection: configure the Agent to accept traces, configure your Pods to communicate with the Agent, and configure your application SDKs to emit traces.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/appsec">}}App and API Protection: Automatically enable App and API Protection for your Kubernetes ingress proxies and gateways to detect threats and protect APIs at the edge.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/csi">}}CSI Driver: Install and set up Datadog CSI driver, and mount DogStatsD and Trace Agent UDS socket using Datadog CSI volumes.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/log">}}Log collection: Set up log collection in a Kubernetes environment.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/tag">}}Tag extraction: Configure the Agent to create and assign tags to all metrics, traces, and logs emitted by a container, Pod, or Node, based on Kubernetes labels or annotations.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/integrations">}}Integrations & Autodiscovery: To configure integrations in a Kubernetes environment, use Datadog's Autodiscovery feature.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/prometheus">}}Prometheus & OpenMetrics: Collect your exposed Prometheus and OpenMetrics metrics from your application running inside Kubernetes.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/control_plane">}}Control plane monitoring: Monitor the Kubernetes API server, controller manager, scheduler, and etcd.{{< /nextlink >}} {{< nextlink href="/agent/kubernetes/data_collected">}}Data Collected: See the list of metrics collected by the Agent when deployed on your Kubernetes cluster.{{< /nextlink >}} {{< /whatsnext >}}
{{< partial name="whats-next/whats-next.html" >}}