Calculate your consumption of Code Monitoring (DPS)

  • Latest Dynatrace
  • Explanation
  • 3-min read
  • Published Aug 12, 2025
Code Monitoring feature overview

This page describes how the Code Monitoring DPS capability is consumed and billed. For an overview of the capability, including its main features, see Code Monitoring.

How consumption is calculated: container-hour

The unit of measure for Dynatrace Code Monitoring consumption is the container-hour.

Each concurrent process consumes container-hours. This consumption can be calculated for containerized and non-containerized workloads:

  • Containerized workloads: A container with OneAgent running is treated as a single concurrent process.
  • Non-containerized workloads: Each concurrent process running on the host is treated separately. A host consumes the total container-hours of all its concurrent processes.

Billing granularity for container-hour consumption

Billing granularity is based on 15-minute intervals. One 15-minute interval is equivalent to 0.25 container-hours.

The figure below illustrates how container-hour consumption is calculated over the course of an entire hour (i.e., four 15-minute intervals).

Code Monitoring consumption example

Track your consumption

This section describes the different Dynatrace tools that you can use to track consumption and costs.

Track your consumption in Notebooks

In Notebooks Notebooks, use the following DQL query to get an overview of Code Monitoring consumption. It returns the total number of container-hours consumed per day, for all days that Code Monitoring is running.

fetch dt.system.events, scanLimitGBytes: -1
| filter event.kind == "BILLING_USAGE_EVENT"
| filter event.type == "Code Monitoring"
| dedup event.id
| summarize ContainerHours=sum(billed_container_hours), by:{timestamp=bin(timestamp, 1d)}
| sort timestamp ASC

Track your consumption and costs in Account Management

You can track your usage in Account Management. Go to Account Management > Subscription > Overview > Cost and Usage Details > Capability: Code Monitoring > Actions > View details.

Track your consumption and costs via API

You can query metrics via the Environment API - Metrics API v2.

Related tags
Dynatrace PlatformInfrastructure Observability