Prometheus vs OpenTelemetry: differences, when to use which, and how they work together

What Prometheus and OpenTelemetry each do, a side-by-side comparison, how to combine them with the Collector and OTLP, the naming and temporality pitfalls, and practical migration paths.

Obseria TeamObseria
Summary
  • Prometheus is a complete metrics system with a time series database, pull-based scraping, PromQL and Alertmanager. OpenTelemetry is a vendor-neutral standard for instrumentation and transport of traces, metrics and logs, without a storage backend of its own.
  • The question is rarely Prometheus or OpenTelemetry: the OpenTelemetry Collector can scrape Prometheus targets and write to Prometheus, and recent Prometheus versions can ingest OTLP metrics directly.
  • The friction lies in the details: metric names and units, resource attributes versus target labels, cumulative versus delta temporality, and histogram formats. Plan for these before you migrate.

Prometheus vs OpenTelemetry is one of the most common questions teams ask when they modernise their monitoring, and it is often asked as if the two were competing products. They are not. Prometheus is a complete metrics system: it collects, stores, queries and alerts on time series. OpenTelemetry is a vendor-neutral standard for producing and transporting telemetry, covering traces, metrics and logs, and it deliberately ships no storage or query engine. In most real setups the answer is not one or the other, but how to combine them well.

This article explains what each project does, compares them side by side, shows when to use which, and describes how they work together through the OpenTelemetry Collector and OTLP. It then covers the details that cause the most friction in practice: metric naming and units, cumulative versus delta temporality, and histogram formats. It closes with migration paths and a checklist. If you are already planning a move away from proprietary agents, our guide on migrating to OpenTelemetry covers the broader project.

What is Prometheus?

Prometheus is an open source monitoring system and time series database, originally built at SoundCloud and now a graduated project of the Cloud Native Computing Foundation (CNCF). It consists of a few clearly defined parts:

  • Pull-based collection. The Prometheus server scrapes HTTP endpoints, usually /metrics, at a fixed interval. Targets are found through service discovery, for example from Kubernetes, Consul or static files.
  • Exposition format. Applications and exporters expose metrics in a simple text format (and its OpenMetrics variant): a metric name, labels in curly braces and a value, for example http_requests_total{method="GET",code="200"} 1027.
  • Local time series database. Samples are stored in a local TSDB on disk. For long-term or global storage, Prometheus can forward data via remote_write to compatible backends.
  • PromQL. A purpose-built query language for time series, with functions such as rate(), histogram_quantile() and aggregations by label. See our glossary entry on PromQL.
  • Alerting. Alerting rules are PromQL expressions evaluated by the server. Firing alerts go to Alertmanager, which handles grouping, silencing, inhibition and routing to receivers.
  • Ecosystem. Client libraries for many languages and a large set of exporters, such as node_exporter for hosts, plus kube-state-metrics for Kubernetes objects.

Prometheus is focused on metrics. It does not store traces or logs, and that focus is a large part of why it is reliable and simple to operate as a single binary.

What is OpenTelemetry?

OpenTelemetry (OTel) is also a CNCF project, created from the merger of OpenTracing and OpenCensus. Its goal is a single, vendor-neutral way to instrument software and move telemetry to any backend. It consists of:

  • Specification and semantic conventions. A data model for traces, metrics and logs, plus standard names for common attributes and metrics, such as http.server.request.duration or service.name.
  • APIs and SDKs. Libraries for many languages to create spans, metrics and logs in application code, plus automatic instrumentation for popular frameworks, often without code changes (zero-code instrumentation).
  • OTLP. The OpenTelemetry Protocol, a push-based protocol over gRPC or HTTP for all signal types. See OTLP.
  • The Collector. A standalone service that receives, processes and exports telemetry through pipelines of receivers, processors and exporters. Our article on running the OpenTelemetry Collector in production goes into detail.

What OpenTelemetry does not include is just as important: there is no storage, no query language and no dashboarding. You always need a backend, which can be Prometheus for metrics, an open source tracing store, or a commercial platform.

Prometheus vs OpenTelemetry: comparison table

The table compares the two projects on the dimensions that usually matter for an architecture decision.

AspectPrometheusOpenTelemetry
Primary roleMetrics monitoring system and TSDBInstrumentation and telemetry transport standard
SignalsMetricsTraces, metrics, logs (profiles in development)
StorageBuilt-in local TSDB, remote write for long termNone, requires a backend
Query languagePromQLNone, depends on the backend
AlertingAlerting rules plus AlertmanagerNone, depends on the backend
Collection modelPull (scrape), push only via remote write or OTLP receiverMainly push (OTLP), pull possible via Collector receivers
Wire formatText exposition format, OpenMetrics, remote write protobufOTLP (protobuf over gRPC or HTTP, also JSON)
Metric namingsnake_case with unit suffixes such as _seconds, _totalDotted names, unit as separate metadata, e.g. http.server.request.duration in s
ContextLabels per series, target labels such as job and instanceResource attributes (service, host, k8s) plus data point attributes
TemporalityCumulative countersCumulative or delta, configurable per exporter
HistogramsClassic bucket histograms, native histograms (version-dependent)Explicit bucket and exponential histograms
Correlation with tracesExemplars (when enabled)Native: shared context, exemplars, trace IDs in logs
GovernanceCNCF graduated projectCNCF project, broad vendor participation

The table shows why "versus" is misleading. Prometheus covers the backend side for one signal. OpenTelemetry covers the producing and transport side for all signals. They overlap only in a narrow area: both define a way to instrument code for metrics, and both define a wire format.

When to use Prometheus, OpenTelemetry or both

Prometheus alone is a good fit when you need infrastructure and service metrics, your team knows PromQL, your workloads run on Kubernetes or similar platforms with good service discovery, and traces and logs are either out of scope or handled separately. The exporter ecosystem is a major advantage for databases, message brokers and hardware.

OpenTelemetry is the better starting point when you want traces, metrics and logs with shared context, you need to correlate a slow request with the logs and metrics of the same service, you want to avoid lock-in to a single vendor's agent, or you need to route telemetry to several backends at once.

Both together is the most common outcome. A typical pattern: applications are instrumented with OpenTelemetry SDKs for traces and application metrics, while existing exporters such as node_exporter and kube-state-metrics stay in place. Either Prometheus or a Collector scrapes those exporters, and metrics end up in a Prometheus-compatible store where dashboards and alerts continue to use PromQL. Our Prometheus integration page describes how this looks with Obseria.

A useful rule of thumb: decide on OpenTelemetry for how telemetry is produced and moved, and decide separately where metrics are stored and queried. Prometheus remains a valid answer to the second question.

How Prometheus and OpenTelemetry work together

There are three main integration points, and you can combine them.

1. The Collector scrapes Prometheus targets. The Prometheus receiver in the OpenTelemetry Collector (from the contrib distribution) accepts standard Prometheus scrape_configs, including Kubernetes service discovery and relabelling. It converts scraped samples into OTLP metrics, so you can process and route them like any other OpenTelemetry data. This lets you keep every existing exporter while moving collection to the Collector.

2. The Collector writes to Prometheus. The prometheusremotewrite exporter sends metrics to any endpoint that accepts the Prometheus remote write protocol, including Prometheus itself when its remote write receiver is enabled (--web.enable-remote-write-receiver). Alternatively, the prometheus exporter exposes a /metrics endpoint on the Collector that Prometheus scrapes.

3. Prometheus ingests OTLP directly. Prometheus 2.47 added an experimental OTLP receiver behind a feature flag. In Prometheus 3.x it is enabled with --web.enable-otlp-receiver and accepts OTLP metrics over HTTP at /api/v1/otlp/v1/metrics. Flags, defaults and translation options have changed between releases, so check the documentation for the exact version you run. Note that this receiver handles metrics only; traces and logs still need another backend.

A minimal Collector configuration that scrapes an existing exporter, receives OTLP from applications and writes everything to a Prometheus-compatible endpoint could look like this:

# example: OpenTelemetry Collector (contrib) pipeline
receivers:
  otlp:
    protocols:
      grpc:
      http:
  prometheus:
    config:
      scrape_configs:
        - job_name: node
          scrape_interval: 30s      # example value
          static_configs:
            - targets: ["node-exporter:9100"]

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 80          # example value
  batch:

exporters:
  prometheusremotewrite:
    endpoint: http://prometheus:9090/api/v1/write
    resource_to_telemetry_conversion:
      enabled: false              # keep resource attributes in target_info

service:
  pipelines:
    metrics:
      receivers: [otlp, prometheus]
      processors: [memory_limiter, batch]
      exporters: [prometheusremotewrite]

Field names and defaults differ between Collector versions, so treat this as a starting point and validate it against your release.

Naming, units and resource attributes

When OpenTelemetry metrics land in Prometheus, names and context must be translated. The OpenTelemetry specification describes a compatibility mapping, and both the Collector exporters and the Prometheus OTLP receiver implement it, with options that vary by version.

  • Names. By default, dots and other unsupported characters are replaced with underscores, and unit and type suffixes are added. The OTel histogram http.server.request.duration with unit s typically becomes http_server_request_duration_seconds, with the usual _bucket, _sum and _count series. Monotonic counters receive a _total suffix. Prometheus 3.x supports UTF-8 metric and label names, and newer releases offer translation strategies that keep the original dotted names; that choice changes every PromQL query, so make it once and deliberately.
  • Units. OpenTelemetry carries units as metadata using UCUM codes such as s, ms or By. Prometheus convention is base units in the name. Semantic conventions now recommend seconds for durations, but older instrumentation may still emit milliseconds; check before you build dashboards, or you will be off by a factor of 1,000.
  • Resource attributes. OpenTelemetry describes the source of telemetry with resource attributes such as service.name, service.instance.id, k8s.pod.name or host.name. In Prometheus, service.namespace and service.name map to the job label and service.instance.id to instance. The remaining resource attributes go to a separate target_info series, which you join in PromQL when you need them. Prometheus 3.x can promote selected resource attributes to labels on every series via its OTLP configuration.
  • Cardinality. Promoting all resource attributes to labels is convenient but multiplies series. Pod names, container IDs and process IDs change often. Read our article on the hidden cost of high cardinality labels before you enable it broadly.

Cumulative vs delta temporality

Temporality describes what a counter value means. With cumulative temporality, each data point reports the total since a fixed start time, for example "1,027 requests since process start". With delta temporality, each point reports only the change since the previous report, for example "12 requests in the last 30 seconds".

Prometheus is built around cumulative counters. Functions such as rate() and increase() expect monotonically growing values and handle counter resets when a process restarts. OpenTelemetry supports both: SDKs default to cumulative for most exporters, but some backends prefer delta, and exporters can be configured with a temporality preference (for example via the OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE environment variable).

  • When the target is Prometheus, keep application SDKs on cumulative temporality.
  • If delta data already exists, for example from a source that only emits deltas, the Collector's deltatocumulative processor can convert it. It keeps state in memory per series, so it needs to run where all points of a series arrive, and memory grows with cardinality.
  • Recent Prometheus versions offer experimental options for delta OTLP data. They are behind feature flags and their behaviour may change, so do not rely on them without testing.
  • The reverse conversion, cumulativetodelta, exists for backends that require delta.

Histograms add another layer. OpenTelemetry offers explicit bucket histograms, which map cleanly to classic Prometheus histograms, and exponential histograms, which map to Prometheus native histograms. Native histogram support in Prometheus has been introduced gradually and depends on version and configuration. If your Prometheus setup does not accept native histograms, configure the SDK or Collector to use explicit buckets with boundaries that match your SLIs.

Migration paths

Migrations go in both directions, and none of them needs a big bang.

From Prometheus client libraries to OpenTelemetry SDKs. Start with new services or with services that also need tracing. Instrument with the OpenTelemetry SDK and either export OTLP to a Collector or expose a Prometheus endpoint through the SDK's Prometheus exporter, so the existing scrape setup keeps working. Expect metric names to change, especially where semantic conventions differ from your hand-written names. Keep a mapping table of old and new names, and run both in parallel for a while so dashboards and alerts can be switched over and compared.

From Prometheus scraping to the Collector. Move scrape_configs into the Collector's Prometheus receiver, one job at a time. The receiver supports most, but not all, Prometheus scrape features, so check the documentation for unsupported options in your version. Watch the Collector's own metrics for dropped data and scrape duration. Running several Collector replicas against the same targets duplicates data; use a target allocator or sharding so that each target is scraped once.

From a proprietary agent to OpenTelemetry plus Prometheus-compatible storage. Deploy the Collector next to the existing agent, send data to both backends during the transition, compare key metrics and alerts, and decommission the old agent per service. This is the path our migration guide describes step by step.

Plan the PromQL rewrite. Most migration effort is not in collection but in dashboards, recording rules and alerts that reference metric names. Inventory them first.

Frequently asked questions

Does OpenTelemetry replace Prometheus?

No. OpenTelemetry can replace Prometheus client libraries and, with the Collector, the scraping part. It does not replace the Prometheus TSDB, PromQL or Alertmanager, because it has no storage or query layer.

Can I use PromQL with OpenTelemetry metrics?

Yes, if the metrics are stored in Prometheus or a backend that supports PromQL. Names are translated as described above, so your queries use the translated names unless you choose a UTF-8 translation strategy.

Is pull or push better?

Both have trade-offs. Pull makes it easy to see whether a target is up and keeps control on the server side. Push works better for short-lived jobs, serverless functions and networks where the monitoring system cannot reach targets. With the Collector you can use both.

Do I still need exporters such as node_exporter?

Often yes. The Collector has its own receivers for host and Kubernetes metrics, but established exporters cover many systems well, and the Prometheus receiver lets you keep them.

Prometheus and OpenTelemetry checklist

Use this checklist before you combine or migrate

  • Decided separately: how telemetry is produced and transported, and where metrics are stored and queried
  • Inventory of exporters, scrape jobs, recording rules, alerts and dashboards that depend on metric names
  • Chosen integration point: Collector Prometheus receiver, remote write exporter, Prometheus OTLP receiver, or a combination
  • Prometheus and Collector versions documented, and flags such as --web.enable-otlp-receiver verified for that version
  • Naming strategy decided: underscore translation with suffixes or UTF-8 names, applied consistently
  • Units checked, especially seconds versus milliseconds for durations
  • service.name, service.namespace and service.instance.id set on every service, so job and instance are meaningful
  • Resource attribute promotion limited to low-cardinality attributes
  • Cumulative temporality for Prometheus targets; delta conversion only where needed and tested
  • Histogram format matched to the backend: explicit buckets or native histograms
  • Collector replicas sharded so that each target is scraped once
  • Collector self-monitoring for dropped points, queue size and scrape errors
  • Parallel run with old and new pipelines, and comparison of key metrics before switching alerts

How Obseria helps

Obseria is an OpenTelemetry-native observability platform. Applications send traces, metrics and logs via OTLP, directly or through the OpenTelemetry Collector, and existing Prometheus metrics can be brought in alongside them, so you do not have to choose one world. Metrics are queryable with PromQL, which means existing dashboards and alert expressions can be carried over and adapted rather than rewritten from scratch. Read more on our OpenTelemetry and metrics monitoring pages.

  • Metrics, traces and logs share the same service context, so a latency alert leads directly to the traces and logs behind it.
  • Obseria Pipeline filters, samples and routes telemetry before storage, which helps keep high-cardinality labels under control.
  • Usage-based pricing per signal with unlimited users, and data stored in the EU. See pricing.

To see your Prometheus and OpenTelemetry data side by side, book a demo or start a 14-day free trial.

Share

Observability that delivers answers.

Start for free with OpenTelemetry, no credit card required.