Container Monitoring

A mechanism for following containers that are born and gone within seconds and keep moving between nodes, with the same hands-on approach as host monitoring. On Kubernetes, how the Agent is placed and how billing is counted are both specific to containers, so we cover those two points first.

ProductsDatadog AgentOpenTelemetrySupportIntegrationsIngestionMetrics / Traces / LogsInfrastructure monitoringThis page: ContainerMonitoringAPM and tracingLog managementSecurityDigital experienceDashboards and metricsMonitors and alertsFoundation and data collection

What it does

The Datadog Agent on each node collects container resource usage at 2-second resolution, and the Cluster Agent pulls in the state of Pods and Deployments from the API server. Autodiscovery generates monitoring configuration automatically, and the two screens, Containers Explorer and Kubernetes Explorer, give you a single view of which container is doing what on which node.

When to use it

Its main use is answering the everyday questions of Kubernetes operations, such as "a Pod keeps restarting, but which container on which node is it?" and "why does the Ready count of a Deployment not reach the desired count?" It is also used, in environments where node counts autoscale on EKS or GKE, to read in advance how rises and falls in container count affect the invoice.

An everyday analogy

It is the control tower of a container yard at a port. Ships (nodes) come and go, and containers are transshipped and change places, but the control tower attaches a shipping label (tag) to each one and always knows which tier of which ship it is on right now. If the labels are applied consistently, you can also count immediately how many pieces of cargo each company has.

Why container monitoring is not just "an extension of host monitoring"

Host monitoring rests on the premise that the monitored target stays in the same place. Containers break this premise. The first challenge the official documentation raises is exactly this point: containers move from host to host and are dynamic, which makes them hard to monitor by hand (as of September 2026; source: Basic Agent Autodiscovery). On Kubernetes, moreover, the "place to look" splits in two. One is the CPU and memory that containers on a node are actually using, which the Agent running on each node collects through the kubelet. The other is cluster-wide state such as "the number of replicas a Deployment wants versus the number actually Ready," which exists only in the API server, and having each node's Agent query it individually would put load on the API server. Datadog's container monitoring is designed to collect these two kinds of data with Agents in separate roles and tie them together with the same tag scheme. If you think of the division of roles as Infrastructure Monitoring showing "the state of one machine" with the host as the unit, while container monitoring shows "the state of a group" with Pod / Deployment / namespace as the unit, you will not hesitate over which screen to open. Without this, you end up in a chase: tracking a Pod's restart loop by typing kubectl commands by hand, and by the time you pin down the node responsible, the Pod has moved to another node.

The deployment pattern has two tiers: Node Agent (DaemonSet) and Cluster Agent

The official recommendation is to install on Kubernetes with either the Datadog Operator or the Helm chart. Whichever you choose, the resources created are the same: a DaemonSet that places one Agent on each node, a Deployment for the Cluster Agent with a single instance set per cluster, and their dependent resources (as of September 2026; source: Kubernetes).

  • Node Agent (DaemonSet): one per node. Collects container CPU / memory / network from the kubelet and also serves as the entry point for logs and traces
  • Cluster Agent (Deployment): one set per cluster. Fetches Deployment / Pod state and metadata from the API server and distributes it to the Node Agents
  • Operator or Helm: deploys the two above together with their dependent resources and manages feature enablement in a single configuration
Placement of the Datadog Agent on Kubernetes (as of September 2026; source: the Kubernetes / Cluster Agent pages on docs.datadoghq.com)

The Operator is a method that declares configuration through a custom resource, and it is one of the two officially recommended methods alongside Helm. The Cluster Agent has three roles: standing between the API server and the Agents on the nodes to reduce load on the API server, passing cluster-level metadata that exists only in the API server to the Agents on the nodes to enrich metric tags, and handling cluster-level features such as service monitoring, event collection, and Horizontal Pod Autoscaling based on custom metrics. From Helm chart v2.7.0 and Operator v1.0.0 onward, the Cluster Agent is enabled by default (source: Cluster Agent for Kubernetes). There are also rules for version combinations, summarized in a table: Kubernetes 1.25 and later requires 7.40.0 or later for both the Agent and the Cluster Agent, and 1.33 and later requires 7.67.0 or later (source: Kubernetes Installation). Since it is recommended to keep the Agent and the Cluster Agent on the same version, avoid an operating practice of updating only one of them.

Autodiscovery keeps monitoring in step even as containers come and go

The mechanism at the heart of container monitoring is Autodiscovery. The Agent watches container events such as create / delete / start / stop, and when a new container comes up it identifies the service running inside (Redis, PostgreSQL, and so on) and automatically enables the corresponding monitoring configuration (check). When the container disappears, the configuration is disabled too, so nobody has to chase configuration files by hand. Mechanically, the Agent queries the kubelet's /pods endpoint every 10 seconds to read Pod specifications and matches them against the configuration templates written in Pod annotations and labels (as of September 2026; source: Basic Agent Autodiscovery). Configuration templates are written on the Pod side. In the annotation v2 format available from Agent 7.36 onward, you declare in the Pod manifest which check applies to which container with which parameters, and alongside it you attach the env / service / version tags with the labels tags.datadoghq.com/<container name>.env / .service / .version (as of September 2026; source: Kubernetes and Integrations). The convention of aligning these three tags is called Unified Service Tagging, and it is the key to bundling metrics, logs, and traces under the same service. What is welcome in practice is that monitoring definitions are managed in the repository together with the application manifests. "We forgot to add monitoring" becomes something caught in code review, and the work of the monitoring team distributing configuration afterward disappears.

What you see: two screens and the kubernetes_state metrics

The collected data comes out through two screens and one family of metrics. Containers Explorer (formerly Live Containers) is a screen inspired by htop and kubectl, where you can scan every container in the environment in a table with resource metrics at 2-second resolution, with faceted search and container log streaming. Container collection is enabled by default in most Agent deployment forms. The table can be filtered by Kubernetes-derived tags such as pod_name and kube_namespace, and by the env / service / version of Unified Service Tagging (as of September 2026; source: Containers Explorer).

  • Containers Explorer: see "which containers are using how much CPU / memory right now" at 2-second resolution (via kubelet / Node Agent)
  • Kubernetes Explorer: see "are Deployments / Pods / Nodes in their desired state" (via API server / Cluster Agent)
  • kubernetes_state.* metrics: store the state above as numbers and put it on dashboards and monitors
The three outlets of container monitoring (as of September 2026; source: the Containers Explorer / Kubernetes Explorer pages on docs.datadoghq.com; metric names from Kubernetes State Core)

Kubernetes Explorer is a screen for viewing the "state" of Kubernetes resources such as Pods and Deployments, where you can check the specification of a failed Pod within a Deployment or cross-check node activity against related logs. It is also enabled by default and requires Agent 7.27.0 or later and Cluster Agent 1.11.0 or later (Cluster Agent 7.40.0 or later on Kubernetes 1.25 and later) (source: Kubernetes Explorer). On the metrics side, the representative pair is kubernetes_state.deployment.replicas_desired and kubernetes_state.deployment.replicas_available; a sustained period in which the difference is not 0 is the definition of "a rollout is stuck." Restart loops are caught with kubernetes_state.container.restarts, and containers piling up while waiting to start with kubernetes_state.container.status_report.count.waiting.

How billing counts - the per-host allotment and 5-minute overage measurement

Container monitoring itself has no independent SKU; it consists of an allotment included in the host billing of Infrastructure Monitoring plus additional charges for anything beyond it. On the official pricing page, the allotment is 5 containers per host on Pro and 10 on Enterprise, and the overage is billed as a monthly amount per container if prepaid, or at a unit price per container hour on demand (source: Datadog Pricing). What matters is how it is counted, and the official billing documentation defines it as follows. The container count is measured every 5 minutes; the 12 measurements in an hour are averaged to give that hour's value; the account-wide allotment (host count × 5 or 10 + contracted containers) is subtracted from it, and the remainder is that hour's overage; the month's overage is the sum of these. Because the allotment is averaged across the whole infrastructure, even if the distribution is skewed, with 20 on one node and 2 on another, there is no additional charge as long as the total stays within the allotment (as of September 2026; source: Containers Billing).

What container billing counts and what it does not (as of September 2026)
ItemTreatmentBasis
The Datadog Agent's own containerNot counted against the allotmentBilling documentation FAQ
Kubernetes pause containersExcluded from the allotment, not billed (on EKS, Agent 7.20 or later)Same as above
Containers of a Pod restarting repeatedly in CrashLoopBackOffMeasurement intervals in which they ran for 10 seconds or more are countedSame as above
An overage of 1,200 containers for only 5 minutesRecorded as 1,200 ÷ 12 = 100 container hoursSame as above (worked example)
ECS / EKS FargateBilled separately by the number of concurrently running tasks / PodsSame as above
GKE AutopilotBilled under the serverless categorySame as above
Source: Containers Billing. For unit prices, refer to Datadog Pricing

Because Fargate and GKE Autopilot expose no node as a host, they are counted outside the host allotment. How to read the pricing structure as a whole is covered in our guide to the pricing structure. This article explains how billing works. For current unit prices and plans, refer to Datadog's official pricing page.

Will you exceed the included allotment?

Enter your host count and monthly usage to see the total included allotment and how much you would go over it. Unit prices and amounts are not shown.

Plan
Billing itemTotal allotmentOver the allotment
Additional containers--

Allotment values as of 2026-10-13. Source: Datadog pricing page

How to read the invoice when node counts move on EKS / GKE

Take as an example a cluster whose EKS or GKE node group autoscales, running 30 nodes during the day and 10 at night. The point to grasp here is that the allotment tracks "the host count in that hour." The official FAQ states explicitly that if autoscaling adds hosts during the day, the container allotment for that time window grows by the same amount (as of September 2026; source: Containers Billing). What drives the invoice is therefore not the node count itself but "container density per node." On the Pro plan, if the density averages 5 or fewer, the overage is zero no matter how the node count rises and falls; at a density of 8, there is a constant overage of 3 per node. Here is one counting example. On Pro with an average of 20 nodes and an average of 160 monitored containers (excluding the Agent and pause containers), the allotment is 100 and the overage is 60. The monthly overage charge is "60 × the monthly amount per container" if prepaid, or "60 × 24 × 30 × the unit price per container hour" on demand, and you read it alongside the host billing of "20 × the host unit price." How much weight the overage carries against the host billing is judged by checking, on the official pricing page, the ratio of the overage unit price for one container to the unit price for one host, and then computing "overage containers per node × that ratio." While that value stays small, container overage is not the main actor on the bill. It becomes the main actor when a design that packs in many small Pods pushes density to 20 or 30. Reading it is a three-step sequence.

  • 1. 99th percentile of host count: look at the current month's host count in Month-to-Date on the usage screen
  • 2. Average container density: divide the container count shown on the same screen by the host count (one division)
  • 3. Overage × unit price: multiply the number of containers beyond the allotment (host count × the per-plan number) by the unit price on the official pricing page
The sequence for reading container billing (starting from Month-to-Date on the usage screen)

To follow day-to-day changes, the simple form is to graph datadog.estimated_usage.containers alongside datadog.estimated_usage.hosts and watch how density trends (for the procedure, see how to check your usage and costs).

Pre-deployment checklist - 6 items to decide before installing on Kubernetes

Here, in order, are the items that hurt to fix later when installing on Kubernetes.

  • 1. Check the version table: Agent / Cluster Agent 7.40.0 or later for Kubernetes 1.25 and later, 7.67.0 or later for 1.33 and later. Keep both on the same version
  • 2. Choose the deployment method: Operator or Helm (the two officially recommended methods). Avoid hand-written manifests and consolidate configuration into a single values file or custom resource
  • 3. The Unified Service Tagging convention: put the env / service / version labels into the template for every Deployment. Without this, APM, logs, and containers do not link up
  • 4. The Autodiscovery convention: decide which check applies to which service through annotations, and include it in the template
  • 5. Narrow the monitoring scope: add configuration that excludes namespaces and containers that do not need monitoring (Container Discovery Management), and spend the allotment where it counts
  • 6. Forecast billing: estimate the overage from the 99th percentile of host count and the container density, and count Fargate / Autopilot separately if present
The 6 items before installing on Kubernetes (based on the official documentation as of September 2026)

Items 3 and 4 in particular, once placed in the Deployment template (the Helm chart or Kustomize base), propagate automatically to every service, which makes them the items most worth deciding at the start of the rollout. Logs and traces are separate SKUs (Log Management and APM), so if you enable them at the same time as container monitoring, estimate each billing unit separately.

Things to watch out for

  • This article is based on the official documentation as of September 2026. Because the required Agent / Cluster Agent versions and configuration key names are updated over time, give priority to the table on the Installation page of the official documentation when you deploy.
  • This article explains how billing works. For current unit prices and plans, refer to Datadog's official pricing page.
  • The worked estimate of container counts is a rough calculation applying the official billing rules (5-minute measurement / hourly average / allotment subtraction); treat the Billable figures in Plan & Usage as the authoritative source for the actual invoice.
Share