DogStatsD
DogStatsD is a metrics aggregation service bundled with the Datadog Agent; it is the path that receives numeric values applications send using the StatsD protocol, bundles them, and forwards them to Datadog. It adds extensions such as tags on top of StatsD compatibility, making it the most convenient entry point for getting your own numbers into Datadog.
Overview
DogStatsD is a StatsD-compatible metrics aggregation service bundled with the Datadog Agent. Applications only have to throw short strings at UDP or a UNIX domain socket, with no need to wait for a response. Received values are bundled on the Agent side every 10 seconds and sent to Datadog (as of September 2026). It is the concept you care about when you want to get application-specific numbers such as order counts or queue lengths into Datadog, and when you want to understand the mechanism by which those numbers are counted as custom metrics for billing.
An Agent-built-in receiver that adds Datadog's extensions to StatsD
DogStatsD is a metrics aggregation service bundled with the Datadog Agent. It is the path presented as the most convenient way to get your own numbers into Datadog. On top of implementing the StatsD protocol, it adds 4 extensions of its own: the histogram type, service checks, events, and tagging (as of September 2026; Source: DogStatsD). Any StatsD-compliant client can send to the Agent, but the 4 extensions are unavailable, leaving you no choice but to embed environment and service distinctions into the name, such as prod.api.orders. Being able to attach a Tag to the value itself is the biggest difference from plain StatsD, and StatsD timers are received as histograms rather than as an independent type.
Fire-and-forget UDP and 10-second aggregation
The sending side only throws a short string with the name, value, and type separated by vertical bars, such as page.views:1|c, at the Agent (for the format, see Datagram Format and Shell Usage). The receiver is UDP port 8125, enabled by default in Agent v6 and later, and it can also be switched to a UNIX domain socket (as of September 2026; Source: DogStatsD). As long as you send over UDP, the application moves on to its next step without waiting for a response, and even if DogStatsD is down, the actual processing is not interrupted. The receiving side gathers values with the same name and tags into a single point within a 10-second window called the flush interval before forwarding to Datadog, so even if you increment 1,000 times per second, what arrives is 1 point per 10 seconds. Without this, the application would call the HTTP API itself and shoulder authentication, retries, and aggregation, and the monitoring work would become a factor slowing down the actual work.
What to send and which tags to attach
What you send are application-specific numbers that integrations and Agent checks cannot pick up. Order counts and queue lengths are typical; host CPU and memory are already collected by the Agent, so there is no reason to send them twice. Tags are attached colon-separated, such as env:prod, and Datadog recommends unified service tagging, which aligns the 3 tags env / service / version (as of September 2026; Source: DogStatsD). If you attach a tag whose values grow without bound, such as a user ID, the combinations of name and tags become the number of time series as-is, and Cardinality shoots up. In container environments there is a mechanism that automatically attaches the tags of the sending pod, and its granularity can be chosen from none / low / orchestrator / high via the cardinality parameter.
6 types you can send, but different types on screen
There are 6 types you can specify in a datagram (as of September 2026; Source: Datagram Format and Shell Usage). They are c (COUNT) / g (GAUGE) / ms (TIMER) / h (HISTOGRAM) / s (SET) / d (DISTRIBUTION). What is easy to misread is that the type at submission and the type visible on screen are not the same; the type changes when the Agent consolidates the values within the flush interval into a single representative value.
| Submission type | In-app type | Handling within the 10-second window |
|---|---|---|
| COUNT (including increment / decrement) | RATE | Converts the total to per second |
| GAUGE | GAUGE | Keeps the last value received |
| SET | GAUGE | Keeps the number of unique values |
| HISTOGRAM (including TIMER) | GAUGE and RATE | Expanded into avg / median / 95percentile / max and count |
| DISTRIBUTION | DISTRIBUTION | Sends raw values; aggregation happens on the Datadog side |
COUNT coming out as "how many per second" rather than "how many per 10 seconds" is by design, and the total count is converted back to a sum on the query side.
What is counted is not the number of submissions but the number of time series
Metrics sent via DogStatsD are counted as Custom Metrics. The unit is neither the number of submissions nor the number of data points, but the number of time series, where one unique combination of metric name and tag values is one; even if you call increment 100 times per second, it stays at 1 as long as the name and tags are the same. What does increase the count, conversely, is HISTOGRAM. A single name is expanded by default into 5 series: avg / count / median / 95percentile / max. With 100 tag combinations, that becomes 500 series (as of September 2026; Source: Metrics Types). The misconception that "you can just throw all the fine-grained values" comes from not knowing this way of counting. Narrowing down to only the aggregations you need with histogram_aggregates and histogram_percentiles, and the process of designing the values and tags you send, ties directly to cost. For where this path fits in the whole, see Datadog Metrics.