| Metric Type | OpenMetrics | Datadog |
|---|
| counter | counter | count |
| gauge | gauge | gauge |
| histogram | _count, _sum, _bucket | The _count, _sum, and _bucket values of the histogram are each mapped to Datadog’s count type and include a .count, .sum, and .bucket suffix, respectively. |
| summary | _count, _sum, _created | The _count and _sum values are mapped to Datadog’s count type and include a .count and .sum suffix in their name, respectively. Quantile samples are mapped to a metric of type gauge with the .quantile suffix. |
Histogram
For Prometheus/OpenMetrics histogram, the _count, _sum, and _bucket values of the histogram are each mapped to Datadog’s count type and include a .count, .sum, and .bucket suffix in their names, respectively.
If the histogram_buckets_as_distributions parameter is true, _bucket samples are aggregated into a Datadog distribution. Datadog distribution metrics are based on the DDSketch algorithm and allow for more advanced statistical aggregations such as quantiles. For more information, see the Datadog Engineering Blog post on OpenMetrics and distribution metrics.
collect_counters_with_distributions can be used to send _count and _sum values as counts alongside the distribution.
Summary
For Prometheus/OpenMetrics summary, _count and _sum values are mapped to Datadog’s count type and include a .count and .sum suffix in their name, respectively. Quantile samples are mapped to a metric of type gauge with the .quantile suffix.
Counter
By default, Prometheus/OpenMetrics counter maps to Datadog’s count.
However, if the parameter send_monotonic_counter is false, then this metric is sent as gauge.
Gauge
Prometheus/OpenMetrics gauge maps to Datadog’s gauge.
Histogram
For Prometheus/OpenMetrics histogram, the _count and _sum values of the histogram are each mapped to Datadog’s gauge type and include a .count and .sum suffix in their name, respectively.
If the send_histograms_buckets parameter is true, _bucket samples are sent to Datadog with a .bucket suffix, and are also mapped to Datadog’s gauge by default.
Setting the send_distribution_counts_as_monotonic parameter to true causes the _count and _bucket metrics to be sent as type count instead. Setting send_distribution_sums_as_monotonic does the same for _sum metrics.
If the send_distribution_buckets parameter is true, _bucket samples are aggregated into a Datadog distribution. Datadog distribution metrics are based on the DDSketch algorithm, and allow for more advanced statistical aggregations such as quantiles. For more information, see the Datadog Engineering Blog post on OpenMetrics and distribution metrics.
Summary
For Prometheus/OpenMetrics summary, _count and _sum values are mapped to Datadog’s gauge type by default, and include a .count and .sum suffix in their names, respectively. Quantile samples are mapped to a metric of type gauge with the .quantile suffix.
Setting the send_distribution_counts_as_monotonic parameter to true causes the _count and _sum metrics to be sent as type count instead. Setting send_distribution_sums_as_monotonic does the same for _sum metrics.