Metric Types
Metric types are the types that determine how Datadog aggregates and stores metric values and how it displays them. There are five in-app types: COUNT / RATE / GAUGE / HISTOGRAM / DISTRIBUTION.
Overview
The metric type is the rule that combines the values you send into a single point, and even with the same numbers, a different type changes both the shape of the graph and the judgment of a monitor. It matters when you start sending your own numbers through DogStatsD or a similar route, when you are torn between distribution and histogram, and when the number of custom metrics grows beyond what you expected. The type you specify on the sending side and the type shown in Metrics Summary do not always match, and if you do not know this correspondence you will misread the results of your queries.
Send the same values, and the type changes the numbers on the graph
A metric type is the rule that combines the multiple values that arrived within the Agent's flush interval into a single point, and even if you send the same values, a different type changes the number that appears on the graph. In the official example, when [1,1,1,2,2,2,3,3] arrives in a 10-second interval, COUNT sends the total of 15 and RATE sends 1.5 per second (as of October 2026; Source: Metrics Types). HISTOGRAM splits it into statistics such as an average of 1.88 and a maximum of 3. Where the values are combined also differs by type: only DISTRIBUTION is combined on the Datadog server side rather than in the Agent. The use of each of the five types is summarized in the Metrics explainer.
The stored type and the place of aggregation change with the route
Even for the same COUNT, the type that gets stored and the place where values are combined change depending on which route you sent it through.
| How it is sent (Python) | Submission type | Stored type | Where it is aggregated |
|---|---|---|---|
self.count in an Agent check | COUNT | COUNT | Agent |
dog.increment in DogStatsD | COUNT | RATE | Agent |
self.rate in an Agent check | RATE | GAUGE | Agent |
api.Metric.send in the HTTP API | The specified type | Stays the specified type | Not aggregated |
histogram (Agent check / DogStatsD) | HISTOGRAM | GAUGE and RATE | Agent (expanded into statistics) |
distribution (DogStatsD / HTTP API) | DISTRIBUTION | DISTRIBUTION | Datadog server side |
Even for the same count, it is stored as COUNT from an Agent check and as RATE from DogStatsD, so when you put two names from different routes side by side, align their display with as_count() or a similar modifier. The types and formats for each DogStatsD submission method are left to the DogStatsD entry.
The p95 of one host, or the p95 of the whole?
HISTOGRAM and DISTRIBUTION differ in where they aggregate the spread of values. With HISTOGRAM, the Agent on each host computes p95 for each interval, so what you get is the p95 of that host alone. DISTRIBUTION sends the raw values in a structure called DDSketch, and Datadog computes percentiles across all hosts on its side (as of October 2026; Source: Distributions). For why averaging the per-host p95 values does not give the overall p95, see Percentile. For the skew of a single host, use HISTOGRAM; for the slowness of the whole service, use DISTRIBUTION.
What goes wrong when you mix up GAUGE, COUNT, and RATE
GAUGE keeps only the last value in an interval, so it suits numbers that represent a state, such as free disk space, and if you send counts as a GAUGE, an aggregation that produces a daily total no longer holds. A single point on a graph is determined in two stages: space aggregation, which combines across hosts and tags (avg by / sum by, and so on), and rollup, which combines along the time axis to fit the display width (as of October 2026; Source: Querying). For COUNT and RATE, you can switch how they are combined along the time axis between a count and a per-second value with as_count() and as_rate() (Source: Metric Type Modifiers). Applying them to a GAUGE changes neither storage nor display, but in monitors the evaluation path of functions such as pct_change() changes.
The number of custom metrics changes by type
Custom metrics count each combination of a metric name and tag values as one metric, but how many it grows into is determined by the type. COUNT / RATE / GAUGE stay at one. HISTOGRAM grows by the number of statistics the Agent produces, which is 5 by default. DISTRIBUTION is also 5 by default, and enabling percentiles adds a further 5 times the number of combinations (as of October 2026; Source: Custom Metrics Billing). The count for HISTOGRAM goes down if you narrow histogram_aggregates. Before enabling percentiles on a name with many tags, check the number of combinations first.
What to check before changing a type afterward
A type can be changed from Metrics Summary, but the behavior of existing graphs and monitors also changes, and past data can become meaningless (as of October 2026; Source: Metrics Types). In the official example, if you change counts that were being sent as a GAUGE to RATE, the values from before the change are not interpreted correctly. If you need the past values, the official recommendation is to keep the type unchanged and resend under a new name. As a first step, if you put the type in Metrics Summary side by side with the sending code for one custom metric you look at often, you will find names that deviate from the per-route table.