OpenMetrics

OpenMetrics is a specification that standardizes the Prometheus-format method of exposing metrics. Datadog periodically reads the exposed endpoint with the Agent's OpenMetrics check, and treats every value it ingests as a custom metric.

Overview

OpenMetrics comes up when you want to bring exporters or application endpoints built for Prometheus onto Datadog without rewriting them. In Datadog, the OpenMetrics check bundled with the Agent periodically reads that exposed endpoint. It matters when you put an existing exporter onto Datadog, and when you search for the reason your custom metrics allocation is shrinking faster than expected. Configuration takes only a few keys, and on Kubernetes the same content can be distributed through Autodiscovery annotations.

A specification in which Datadog goes and reads a Prometheus-format endpoint

OpenMetrics is the text-format method of exposing metrics popularized by Prometheus, arranged into a vendor-neutral specification. An application or exporter lines up text with one value per line at an HTTP endpoint, and the collector comes to read it periodically. In Datadog, the OpenMetrics check bundled with the Agent takes the role of this reader. It can read both the Prometheus exposition format and the OpenMetrics specification (Agent 6.6.0 and later, as of September 2026, Source: OpenMetrics). Without this, you would end up rewriting exporters and application instrumentation built for Prometheus for Datadog. With it, you can ingest the existing endpoint as metrics as it is and place them on the same screen as host and container tags.

The entry point of configuration is three keys - conf.yaml and Autodiscovery

For an Agent running on a host, you write it in conf.d/openmetrics.d/conf.yaml. On Kubernetes, you write the same content in the Pod annotation ad.datadoghq.com/<CONTAINER_NAME>.checks. The v2 annotation format applies to Agent 7.36 and later (as of September 2026, Source: Kubernetes Prometheus and OpenMetrics metrics collection). The keys required per instance are the following three.

Required keys of the OpenMetrics check
What to decideCaveatKey name
The URL to go and read.Make it unique per instance.Written in openmetrics_endpoint.
The prefix attached to the front of every metric name.Becomes the namespace on the Datadog side.Written in namespace.
The list of metrics to ingest.Interpreted as regular expressions; renaming is also possible in the form metric_name: renamed.Written in metrics.
Source: The Configuration entries of OpenMetrics, rearranged (as of September 2026).

The way of distributing this on Kubernetes is the Autodiscovery mechanism itself, and the Helm installation procedure is summarized in the Kubernetes Helm setup article. Configuration is completed in conf.d on the check side, and its location is separate from the Agent's own datadog.yaml.

The openmetrics check or the prometheus check - which to choose

Two checks with similar names are bundled with the Agent. The OpenMetrics check has a latest mode in which you specify openmetrics_endpoint, and a legacy mode in which you specify prometheus_url. Datadog recommends the latest mode, which has the full set of new features (as of September 2026, Source: OpenMetrics). There is also a separate Prometheus check, but for reasons of efficiency and support for the text format, what the official documentation recommends is the OpenMetrics check. The official dividing line is that its turn comes only when the endpoint does not support the text format (Source: Kubernetes Prometheus and OpenMetrics metrics collection). What matters during migration is the naming rule: from Agent 7.32.0 onward, counters ending in _total are specified without the suffix.

The limit of 2000 per instance, and how billing applies

The number ingested passes through two gates.

  • Start with all metrics at the endpoint.
  • Only those matching the metrics list pass through.
  • Capped at a default of 2000 per instance (changed with max_returned_metrics).
  • The number that passed through counts against the custom metrics allocation.
Source: The entries of OpenMetrics and Kubernetes Prometheus and OpenMetrics metrics collection, arranged into a single flow (as of September 2026).

The first gate is the check's own limit, and the number actually returned can be confirmed with the Agent's status command (as of September 2026, Source: OpenMetrics). The second is billing: metrics ingested through this check are not treated as a supported integration, and all of them are counted as custom metrics. Since each combination of name and tag values is one, exporters with many label values consume the allocation faster. The details are left to custom metrics and cardinality. The default limit of 350 found in the ActiveMQ and JMX integrations does not apply to the collected count (Source: Custom Metrics). The official documentation warns that writing a broad wildcard in metrics has a large impact on the bill (as of September 2026, Source: OpenMetrics). The limit is "the number the check returns in one run" and billing is "the number of combinations across the whole account"; they are measured in different places.

Histograms can be received as distributions

Prometheus histograms are exposed split into multiple buckets. The OpenMetrics check has a send_distribution_buckets option. When enabled, the buckets can be received as a distribution on the Datadog side (as of September 2026, Source: Kubernetes Prometheus and OpenMetrics metrics collection). The easy mistake is the assumption that it is treated the same as a supported integration and does not consume the allocation. Designing a narrowed metrics list comes before streaming every item from the exporter. The comparison of continuing to run Prometheus and Grafana yourself versus consolidating onto Datadog is covered in Datadog vs Grafana.

Share