"Should we use OpenTelemetry or Prometheus?" is a common question, and it is slightly the wrong one. The two projects overlap only in part, and many teams use both.

What each project is

Prometheus is a metrics system: a time-series database, a pull-based collector that scrapes /metrics endpoints, a query language (PromQL) and an alerting component. Applications expose metrics in the Prometheus text format, and Prometheus fetches them on a schedule.

OpenTelemetry is a standard and a set of SDKs for producing telemetry (traces, metrics and logs) plus the Collector for processing and routing it. It does not store data or provide a query language; it sends data to a backend of your choice using OTLP.

Side by side

PrometheusOpenTelemetry
SignalsMetricsTraces, metrics, logs
ModelPull (scrape)Push (export), or pull via Collector receivers
Storage and queriesYes (TSDB, PromQL)No; sends to a backend
InstrumentationClient libraries, exportersSDKs with automatic instrumentation
EcosystemHuge exporter ecosystemVendor-neutral standard, broad language support

How they work together

  • The Collector can scrape Prometheus endpoints with its prometheus receiver and forward the metrics as OTLP to any backend.
  • OpenTelemetry metrics can be exposed in Prometheus format for teams that keep a Prometheus server.
  • Prometheus can receive OTLP metrics directly in recent versions.

So the choice is rarely either-or. It is about where you want your source of truth and how much you want to operate yourself.

Choosing for a new service

  • If you need traces (and for web services you usually do), use OpenTelemetry for instrumentation. Automatic instrumentation gives you HTTP, database and client spans with no code, and you can derive request, error and latency metrics from them. See what is OpenTelemetry.
  • If you already run Prometheus well, keep it for infrastructure and exporter metrics, and send application traces elsewhere.
  • If you want one pipeline, use the OpenTelemetry Collector to gather both your OTLP data and existing Prometheus endpoints, and send them to one backend.

A common setup

  1. Instrument services with OpenTelemetry SDKs (traces and metrics).
  2. Run a Collector per node or cluster: OTLP receiver for your apps, prometheus receiver for exporters such as node, Redis or Postgres exporters.
  3. Export everything to your observability backend.

This keeps instrumentation vendor-neutral and avoids running a separate metrics stack unless you want one.

Where VitalRix fits

VitalRix accepts OTLP over HTTP with JSON for traces and metrics. Node.js and Next.js SDKs export directly; other SDKs, and Prometheus endpoints scraped by the Collector, go through a Collector that converts and forwards. APM views (endpoints, percentiles, service map) come from traces, and metrics can be charted and alerted on. See OpenTelemetry in VitalRix and the OpenTelemetry backends guide.

Pull vs push in practice

Prometheus pulls: it needs network access to every target and a service discovery mechanism (Kubernetes, Consul, static lists) to know what to scrape. That works well inside a cluster and makes it obvious when a target is down (the scrape fails). It is awkward for short-lived jobs, serverless functions and anything behind NAT, which is why the Pushgateway exists.

OpenTelemetry pushes by default: SDKs export to a Collector or backend. That works naturally for serverless and short-lived processes and across network boundaries, and the Collector can still pull from Prometheus endpoints when needed. The trade-off is that a silent exporter does not "fail a scrape"; you detect missing data with heartbeats or absence alerts.

Metric types

Both have counters, gauges and histograms. OpenTelemetry also supports exponential histograms, which give accurate percentiles with fewer buckets, and its metrics carry resource attributes (service, version, environment) rather than relying only on labels added at scrape time. When OpenTelemetry metrics are exported to Prometheus, names and units are translated (for example dots become underscores).

A migration path

Teams moving from a Prometheus-only setup to OpenTelemetry often go in this order:

  1. Add OpenTelemetry tracing to services; keep existing Prometheus metrics.
  2. Run a Collector that scrapes existing exporters with the prometheus receiver.
  3. Move application metrics to OpenTelemetry SDKs over time, or derive request metrics from spans.
  4. Decide whether to keep Prometheus as the metrics store or send everything to one backend.

Decision checklist

  • Need traces? Use OpenTelemetry.
  • Large investment in PromQL dashboards and alerts? Keep Prometheus as a store, feed it from the Collector.
  • Small team, little appetite for running databases? Send everything from the Collector to a hosted backend.

For per-language setup, see OpenTelemetry for Python, Go and Java.

Is OpenTelemetry replacing Prometheus?

No. OpenTelemetry standardizes how telemetry is produced and moved; Prometheus is a metrics database and query engine. They increasingly interoperate.

Can I use PromQL with OpenTelemetry metrics?

Yes, if you send OpenTelemetry metrics to Prometheus or a Prometheus-compatible backend.

Which is easier to start with?

For application tracing, OpenTelemetry auto-instrumentation. For simple infrastructure metrics with existing exporters, Prometheus is quick to set up.

Try VitalRix free

Uptime monitoring, APM, logs, real user monitoring and status pages in one place. No credit card needed.