OpenTelemetry metrics into Prometheus with OTLP

Sending OpenTelemetry metrics straight into Prometheus through its OTLP receiver, with the endpoint, out-of-order handling, attribute promotion and naming decisions planned before go-live.

On this page

How OTLP ingestion connects OpenTelemetry metrics to Prometheus

If you run OpenTelemetry instrumentation or Collectors and want the metrics in Prometheus, the short answer is that Prometheus has a native OTLP receiver for metrics, so your applications or Collectors can send OpenTelemetry metrics to a Prometheus endpoint instead of waiting to be scraped. OpenTelemetry defines how telemetry is generated, exported and collected, but it is not an observability backend. Prometheus is the system that stores, indexes and answers PromQL queries against those metrics, and alert rules and Alertmanager run on top of that stored data. The integration therefore sits at the boundary between an OpenTelemetry pipeline and a Prometheus server you operate, and the work is planning three things: the endpoint, how samples are ingested, and how names and attributes are translated.

Start by deciding whether each metric source will push over OTLP directly or pass through a Collector, and where the Collector runs as an agent beside services or as a gateway for many sources. That choice determines how many senders reach the Prometheus endpoint and which replicas can send the same series. Ingestion settings matter here. Replicated Collectors can deliver samples out of time order, so you need to confirm the out-of-order ingestion setting and its time window for your release in the Prometheus configuration docs before you rely on it. Also confirm how the OTLP endpoint is enabled and which path it uses, because the exact flags and receiver settings change between Prometheus versions and should not be copied from older examples.

The naming decision is the one most likely to break dashboards and alerts later. Prometheus translates OpenTelemetry metric and attribute names into its own naming scheme, and the translation strategy you pick controls whether units, suffixes and resource attributes land where your existing PromQL expects them. Decide which resource attributes to promote to labels, since each promoted attribute adds series and cardinality. Write the decision down before the first dashboard is built, and test it against one service in a staging Prometheus. The Prometheus overview and OpenTelemetry Collector documentation are the right next reads to confirm these settings against your own environment.

What you need before enabling OTLP ingestion

Enabling the OTLP receiver is a small configuration change, but the Prometheus release, the Collector build, the network path, the security controls and the storage plan all have to be settled first. Each card below is one decision to make or one check to run before the first metric arrives.

Target a supported Prometheus release line

The OTLP receiver is part of the Prometheus server, so the release line you choose sets what you get and how long you get it. Prometheus minor releases receive bug fixes for only a limited window, while long-term support lines receive fixes for one year. The current LTS line is 3.13, supported until July 31, 2027. Confirm the line against the release cycle page and plan a version path before you go to production.

Release cycle docs

Pick the Collector distribution and version

Metrics leave the OpenTelemetry side through the Collector or through SDK exporters, so you need to choose which build runs in your environment. The contrib distribution includes the components most teams use, and release artifacts come with signed binaries, SHA256 checksums and SBOM files. Record the exact version, check the stability level of each component you rely on in its README, and keep Collector versions on a planned upgrade cycle.

Collector releases

Map the network path to Prometheus

Decide whether metrics flow from SDK exporters directly to Prometheus, or from Collector agents or gateways. Each hop needs a route, a port and a firewall rule, and the path must work in both directions for any authentication handshake. Document which Collector pushes to which Prometheus instance, and check how replicas or load balancers sit in front of the OTLP endpoint, because that choice affects ordering and retries.

Decide on TLS and client authentication

Prometheus supports TLS and client certificate authentication, with TLS 1.2 as the minimum. Basic authentication without TLS sends credentials in cleartext, so do not use it on an OTLP path that crosses a network you do not fully control. Decide who issues the certificates, how they rotate, and whether Collectors will authenticate with an authenticator extension such as OIDC on the receiving side or oauth2client on the sending side.

Security model

Restrict who can write metrics

The OTLP endpoint accepts writes, so any client that can reach it can add series to your storage. Limit access to known Collector and application addresses at the network layer, and put the endpoint behind the same reverse proxy or access control you use for the rest of Prometheus. Confirm that admin and lifecycle endpoints remain disabled unless you have a reason to enable them.

Size local storage for the write volume

Prometheus writes received samples to its local time series database, which keeps data for 15 days by default and is not clustered or replicated. OTLP traffic can add series quickly, especially from many services with resource attributes promoted to labels. Estimate active series and sample rate from a test pipeline, set retention by time or size, and plan disk and memory headroom. If you need longer retention or redundancy, decide on remote write storage before launch.

Storage docs

Configuring the OTLP path from Collector to Prometheus

This sequence takes an OpenTelemetry Collector from a working configuration to metrics that Prometheus stores with labels and names your dashboards and alert rules can use. Each step ends with a check so that a fault is found before the next setting changes.

  1. Confirm the OTLP receiver is enabled

    Before changing the Collector, confirm that the Prometheus release you run includes the OTLP receiver and that it is switched on in the server configuration. Check the release notes for the exact setting and endpoint path, because both can vary by version and release line, and confirm which line your servers run against the release cycle documentation. Done means Prometheus starts with the receiver enabled and the OTLP endpoint answers a test request from the Collector host without authentication errors.

  2. Point the Collector metrics exporter at Prometheus

    The platform team adds an OTLP HTTP exporter to the Collector configuration and includes it in the metrics pipeline, using the endpoint given in the Prometheus documentation for your release. Keep the exporter in the same pipeline as your receivers and processors so that batching and memory limits apply before data leaves the Collector. Done means the Collector validates its configuration and starts cleanly, its logs show no repeated export failures, and the exporter's sent-data counters rise while test traffic flows.

  3. Confirm a test metric in PromQL

    Send one known metric from a test application through the Collector and query it in the Prometheus expression browser. Check that the series exists, that its value changes as the application changes it, and that the resource and data point attributes arrive as the labels you expect, including the job and instance labels derived from resource attributes. Treat this as the baseline: if the series is missing, check the Collector exporter logs and the Prometheus log before changing any other setting. Done means one query returns the test series with the expected labels.

  4. Enable out-of-order ingestion only for replicas

    Set out-of-order ingestion only when several Collector replicas send samples for the same series and their timestamps can arrive out of order. Find the setting in the Prometheus documentation for your release, and confirm its time window and how it interacts with retention and compaction, as covered in the storage documentation. A single Collector instance usually needs no change here. Done means a replica test sends overlapping data and Prometheus accepts it without out-of-order rejections in its logs or ingestion counters.

  5. Define resource attribute promotion

    Decide which OpenTelemetry resource attributes become Prometheus labels. Attributes that identify the workload, such as service name and namespace, usually belong on every series, while high-churn values such as process or container identifiers can multiply series counts quickly. Write the promotion list in the configuration mechanism your release documents for this, kept under version control, and review it with the team that owns dashboards. Done means a PromQL query filtered on each promoted label returns the test series, and attributes you did not promote are absent from the series labels.

  6. Choose and record the name translation strategy

    Pick the strategy that converts OpenTelemetry metric names, which use dots and separate unit fields, into Prometheus names with suffixes and labels. Confirm the available strategies and their defaults for your release in the Prometheus documentation, then compare the translated names with the names your existing alert rules and dashboards expect. Record the choice in the runbook with the release version, because changing it later renames series and breaks queries that depend on them. Done means a sample of translated names matches the names your dashboards and rules use, and the decision is on record.

Agent, gateway or direct SDK export: choosing the sender

Direct SDK export fits a small estate with a few services, a platform team that wants the fewest moving parts, or a proof of concept. Each application's OpenTelemetry SDK sends OTLP metrics straight to the Prometheus OTLP endpoint, so there is no Collector to build, patch or scale. The trade-off is that every service carries its own export settings, retry behavior and credentials, and a Prometheus restart or network interruption lands directly on each application's export queue.

  • Buffering: the SDK holds data in memory only, so long outages can drop metrics unless export intervals and queue limits are sized deliberately.
  • Replica count: each application replica is a separate writer, so out-of-order ingestion must be enabled on Prometheus for replicated services to avoid rejected samples.
  • Authentication: every SDK needs credentials or network controls, and rotation touches every service.
  • Resource attributes: the SDK sets attributes at the source, so promotion rules on Prometheus decide which ones become labels.
  • Operations: there is no central point to change routing or drop noisy metrics without redeploying applications.

Before committing, confirm which OpenTelemetry SDK versions your languages use and how their exporters handle retries and queue overflow.

How OpenTelemetry resource attributes and names map to Prometheus labels

This table compares how OpenTelemetry resource attributes and metric names translate into Prometheus job, instance and series labels, and how each naming strategy changes metric names. Read each row as an input, then check what Prometheus does with it and what to confirm in your release. The main takeaway is that promoting attributes simplifies queries but raises label cardinality, and the naming strategy decides whether existing dashboards and alert rules still match.

Input or strategyWhat Prometheus doesWhat to check or confirm
service.nameUsed to build the job label, combined with service.namespace when that attribute is setConfirm the exact job format in the OTLP documentation for your release before writing alert rules
service.instance.idUsed as the instance label on series from that resourceConfirm each collector replica sets a unique value so series do not overwrite each other
Other resource attributes (default)Kept on the target_info series for each resource, not copied onto every metricCheck which attributes appear on target_info and whether your queries join to it
Promoted resource attributesCopied onto every series from that resource as ordinary labelsPromote only low-cardinality keys such as cluster or environment, and test the label count per series
Attributes left on target_infoOne series per resource carries the attributes, joined in PromQL when neededConfirm the join pattern for your release and document it for dashboard authors
Suffixed names strategyDots become underscores, and unit and counter suffixes are appended to metric namesExpect renamed metrics after migration and verify every dashboard and alert query
Unsuffixed names strategyDots become underscores, with no unit or type suffixes addedAlert rules written for suffixed names will not match, so plan a rename pass
UTF-8 preserving strategiesKeep dots and other characters in metric names, with suffix behavior depending on the chosen strategyConfirm that PromQL tooling, Grafana and any remote storage accept UTF-8 names before choosing

How metrics move from instrumented services to Prometheus storage

The flow starts in applications instrumented with OpenTelemetry SDKs, which export metrics to a Collector agent running next to each workload. Agents forward to a Collector gateway with replicas, which sends OTLP to the Prometheus receiver on the monitoring side of the trust boundary. Prometheus writes samples to its local time series database, where PromQL queries read them. Check the boundary crossing first: the gateway-to-Prometheus hop is where authentication, TLS and out-of-order handling for replicas must be settled.

Metrics flow from instrumented services through Collector tiers into Prometheus storage, with the trust boundary marked.

Why out-of-order ingestion matters when collector replicas run

When several Collector replicas forward the same stream of metrics, samples can reach Prometheus out of time order. The cards below cover how that happens, what Prometheus does with late samples, and what to decide before turning the setting on.

How replicas reorder samples

Each Collector replica batches and exports metrics on its own schedule, and retries can delay a batch while a newer one gets through. A sample stamped 10:00:05 may arrive after one stamped 10:00:20 from a different replica. This is normal behavior for a fleet of Collectors, not a sign of a fault in the pipeline. Check how many replicas export to the same series and how often exports retry.

Default ingestion rejects late samples

With out-of-order ingestion disabled, Prometheus rejects a sample whose timestamp is older than the newest sample it already holds for that series. The rejected data is lost from that path, and the gap can look like a scrape or export problem. Confirm how your pipeline handles rejected samples and whether the Collector's own metrics show export failures.

Accepting late samples with a window

Enabling out-of-order ingestion lets Prometheus accept samples that fall within a configured time window behind the newest data. Samples outside that window are still rejected. Confirm the exact setting name and its default in the release line you run, because the window is the value that decides how much lateness you tolerate.

Prometheus storage docs

Cost of a larger window

A wider window keeps more late data but asks Prometheus to hold and place older samples in the head block and its write-ahead log. That raises memory use and makes the head more complex to manage. Ask your team to size the window against the real lateness you observe, not the largest value that seems safe, and to monitor memory after the change.

Effects on queries and alerts

Late samples change the picture that dashboards and alert rules see after the fact. A rule that evaluated before a late sample arrived may have fired on incomplete data, and a graph can shift when the sample is finally written. Decide whether alerts should tolerate this lag, and document which rules depend on recent data.

Verify before and after the change

Measure rejected samples and the age of late data before enabling the setting, then compare the same counters afterward. Run a test with one replica deliberately delayed to confirm that late samples land and that out-of-window samples are still refused. Keep the rollback steps in your change record, since reverting the setting requires a restart.

Common failures when OTLP metrics do not appear in Prometheus

This table lists the failures most often seen when OpenTelemetry metrics fail to reach Prometheus, with the likely cause, the check to run and the fix for each. Work down the rows in order, since a missing receiver or wrong endpoint hides every other symptom. Confirm exact flag names, paths and behavior against the Prometheus and OpenTelemetry Collector documentation for the versions you run.

FailureLikely causeCheck and fix
No series appear at allThe OTLP receiver is not enabled on the Prometheus server, so it never accepts pushed dataConfirm the OTLP receive setting is on in the server configuration and restart or reload. Then query the server for the metric name to confirm it arrived.
Collector reports connection refused or 404Wrong port or path in the Collector exporter, often pointing at the scrape port or a path the receiver does not serveCompare the exporter endpoint with the OTLP path documented for your Prometheus version. Test reachability from the Collector host with a simple HTTP request before changing the pipeline.
Samples rejected as out of orderSeveral Collector replicas send overlapping or late timestamps for the same series, and out-of-order ingestion is not allowed or the time window is too shortCheck server logs for out-of-order errors. Enable out-of-order ingestion only after sizing the window for your replica lag, and confirm the setting name in the release notes for your version.
Expected labels missing from seriesResource attributes were not promoted to labels, or the promotion list omits the keys your dashboards and alerts useInspect one series in the query interface and list its labels. Add the required resource attributes to the promotion configuration, then wait for new samples before judging the result.
Duplicate series from replicasEach Collector replica adds a different instance or pod label, so identical data is stored as separate seriesCompare label sets for two series with the same metric name. Drop replica-specific resource attributes in the Collector or use a consistent identity attribute, and check that alert queries do not double count.
Dashboards and alerts go empty after upgradeThe name translation strategy changed, so units or suffixes differ from the names that existing queries useRun the old and new metric names side by side during a transition. Update PromQL, recording rules and alert rules together, and document the chosen strategy in version control.
Authentication errors on the push pathThe Collector lacks credentials, the receiver or proxy in front of Prometheus rejects the token, or TLS settings do not matchCheck status codes and Collector logs. Confirm the authenticator or client extension is configured on both sides, and test with the same credentials outside the pipeline. Avoid cleartext credentials without TLS.
Metrics stop after a restart or config reloadThe Collector queue or retry settings drop data during a restart, or the Prometheus server was not reloaded with the new configCheck Collector exporter queue and retry logs and confirm which config version Prometheus is running. Verify reload status before assuming the pipeline is healthy.

Testing the pipeline before dashboards and alerts depend on it

Test the OTLP path before any dashboard or alert rule depends on it. The cheapest way to do that is a known metric: have a test service emit one counter with a fixed value, a known unit and a small set of resource attributes, then confirm in PromQL that it arrives under the name your translation strategy should produce, with the expected type and unit suffix and the promoted labels present. Run the same check for a histogram, because it expands into several series and is the easiest place for a naming surprise to hide. Record the exact query and the result, so the check can be repeated after every collector or Prometheus upgrade. Do not assume the translated name matches the one in your instrumentation code. Confirm it on the running server, since the translation strategy you configured determines whether units and type suffixes are appended.

Next, test the failure cases your architecture creates. If several collector replicas send to one Prometheus, stop one replica during a steady send and check that series keep arriving from the others without gaps you did not expect. Then send samples with timestamps slightly out of order from a second source and confirm the out-of-order setting you chose accepts them as intended, and that samples outside the accepted window are rejected and counted rather than silently lost. Also confirm that a restarted collector does not produce duplicate counters that break rate calculations. Write down which behavior you observed for each case, because these results decide whether the replica design is acceptable and which collector settings must stay fixed.

Finally, check that alerting still works against the translated names. Alert rules written against instrumentation names will fail quietly if the strategy changed a suffix or label, so load each rule's PromQL, run it against the test series and confirm it returns the expected result, including a deliberately triggered case. Then keep the collector configuration, the Prometheus OTLP settings, the test service, the PromQL checks and the alert rules together in version control, with a short runbook for the test. The repository record is what lets a reviewer or auditor see how the pipeline was verified and what changed between versions. Confirm the exact OTLP receiver flags and translation options against the Prometheus documentation for your release before writing them into the repository.

Questions buyers ask before outsourcing OTLP ingestion

What drives the effort and cost of sending OpenTelemetry metrics into Prometheus?

The effort depends on how many Collector pipelines you run, how many services emit metrics, and how much naming and label work your existing dashboards and alert rules need. Enabling the OTLP receiver in Prometheus is a small configuration change. The larger costs are reviewing resource attributes, choosing a name translation strategy, and checking that dashboards and alerts still match the new metric names. Cost components are the people doing the design, the build, and the testing, plus the infrastructure that runs Prometheus and the Collectors. Prometheus itself is open source under Apache-2.0, so there is no license fee. One-time work includes design, configuration and migration of queries. Recurring costs include infrastructure, storage, upgrades and the staff who operate the pipeline. Ask any partner for a quote that lists these items separately.

How long does OTLP ingestion into Prometheus take to set up?

Duration depends on the number of metric sources, the state of your current naming conventions, and whether dashboards and alerts must be updated during the same change. A single Collector sending a small set of metrics to a test Prometheus can be configured quickly, while a multi-team estate needs a staged rollout with validation at each step. Delays usually come from unclear metric ownership, label cardinality questions, and approval of network changes. Confirm the timeline in the written scope, including which environments are covered and which teams must sign off on each stage.

What must our team provide before an outside partner starts?

Before work starts, the partner will usually need several inputs from your side:

  • Network access from the Collectors to the Prometheus server, and from Prometheus to any Collectors or targets it must reach, in the environments you run.
  • Named owners for each Collector pipeline, plus an owner for the Prometheus server and for alert routing.
  • An inventory of existing dashboards, alert rules and recording rules that use metric names you plan to change.
  • Decisions on who approves production changes and how test environments are provided.

Confirm these inputs during scoping so that the timeline reflects your actual access and staffing.

Can our internal platform team set up OTLP ingestion without an outside partner?

Yes, a team with Prometheus and OpenTelemetry Collector experience can usually do this internally, especially for a small number of services. The OpenTelemetry Collector is Apache-2.0 licensed and documented, and Prometheus is open source with no vendor license. The risks lie in the details: choosing a name translation strategy, deciding which resource attributes to promote without inflating cardinality, and making out-of-order ingestion work for replicated Collectors. An internal team should decide whether it has time to test these choices against its own dashboards and alerts before production. A partner is most useful when the scope is large, the team is already stretched, or a compliance review needs documented evidence.

Is Prometheus a paid product that we need to license?

No. Prometheus is licensed under Apache-2.0 according to its GitHub repository, and the project has no paid enterprise edition. Your costs come from the infrastructure that runs Prometheus, the storage it uses, the implementation work, and the people who operate it. Some organizations choose a managed Prometheus service instead, which has its own pricing model. Ask any vendor you compare to explain which charges are license fees and which are usage or support fees, so you can compare the total cost of ownership accurately.

What should a written quote for this integration include?

Ask for a quote based on a written scope that names the systems in scope, the number of Collector pipelines, the Prometheus environments, the naming strategy to be implemented, and the dashboards and alert rules to be reviewed. The quote should list deliverables, such as configuration files, a validation report, and a handover session, and state which tasks are one-time and which are recurring, such as upgrades or support. It should also name the client inputs it depends on, such as network access and owners. DeployOpen does not publish a price list. Fixed-scope engagements are agreed in writing before work starts, and a quote follows from that scope.

What breaks most often when metrics from OpenTelemetry reach Prometheus?

The most common problems are unexpected metric names after translation, missing or duplicated labels from resource attributes, and high cardinality from promoted attributes. Replicated Collectors can also send samples out of order if out-of-order ingestion is not configured. Teams should test one service end to end, compare the names in Prometheus with the names their dashboards expect, and check series counts before expanding. Confirm the current behavior of the OTLP receiver and translation options against the Prometheus documentation for the version you run, because option names and defaults can change between releases.

How DeployOpen works on this

DeployOpen plans, builds, tests and hands over OTLP ingestion into Prometheus inside infrastructure you control, including the Collector pipelines that feed it. The work is scoped in writing first, so the endpoint, replica handling, attribute promotion and naming choices are settled before anything reaches production.

How we scope

  • Inventory which applications, Collectors and gateways will send metrics, and which dashboards and alert rules depend on them today.
  • Agree the OTLP endpoint placement, whether collector replicas need out-of-order ingestion, and the resource attributes that must become labels.
  • Record the name translation strategy, the expected label set and the Prometheus and Collector versions in a written scope before work starts.

How we build

  • Enable the OTLP receiver on the Prometheus server and configure the Collector exporter, with the endpoint and authentication set as code.
  • Test out-of-order handling with replicated Collectors and check that duplicate or late samples do not distort rate queries.
  • Validate promoted attributes and metric names against existing PromQL queries, recording rules and Grafana dashboards before cutover.

How we hand over

  • Document the configuration, the naming scheme, the promoted attribute list and the reasons behind each decision.
  • Provide a runbook covering series growth checks, Collector restarts, rejected samples and what to do when a team adds a new metric.
  • Walk your platform and monitoring teams through the setup and the verification steps so they can review and operate it independently.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, Prometheus and Collector upgrades and continuous testing are available as retainers.
  • Confirm with DeployOpen which Prometheus and Collector versions the written scope covers, and who owns upgrades after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.