"OpenTelemetry vs Prometheus" is one of the most searched observability questions, and the honest answer starts with a correction: they are not the same kind of tool. Prometheus is a metrics monitoring system with its own database and query language. OpenTelemetry is a framework for producing and transporting traces, metrics and logs. Most comparisons boil down to how they overlap on metrics.
Key takeaways
- Prometheus stores and queries metrics; OpenTelemetry produces and transports telemetry.
- Prometheus pulls; OpenTelemetry mostly pushes via OTLP, and the Collector can do both.
- OpenTelemetry also covers traces and logs.
- The most common answer is to use both together.
The core difference: scope
Prometheus scrapes metrics from targets, stores them in its time-series database, lets you query them with PromQL and evaluates alert rules. It is a complete metrics backend.
OpenTelemetry stops before storage. It defines how to create telemetry in your code, how to describe it consistently, and how to send it on. It handles traces and logs as well as metrics, but needs a backend — which can be Prometheus — to keep and query the data.
Side-by-side comparison
| Criteria | OpenTelemetry | Prometheus |
|---|---|---|
| Type | Instrumentation framework + Collector | Monitoring system + time-series DB |
| Signals | Traces, metrics, logs | Metrics |
| Collection | Mostly push via OTLP; Collector can also scrape | Pull (scrape); Pushgateway for short-lived jobs |
| Storage | None | Built-in TSDB |
| Query & alerts | None (backend-dependent) | PromQL, recording and alert rules |
| Service discovery | Via Collector receivers | Native (Kubernetes, Consul and more) |
| License | Apache 2.0 | Apache 2.0 |
Push vs pull
Prometheus pulls: it scrapes an HTTP /metrics endpoint on each target at an interval. That gives it built-in health checking — if a scrape fails, the up metric drops to 0 — and works well with its service discovery.
OpenTelemetry SDKs usually push data over OTLP to a Collector or backend. Push suits short-lived processes such as serverless functions and batch jobs, which may finish before a scraper ever reaches them. The OpenTelemetry Collector can do both: its Prometheus receiver scrapes existing targets, and its exporters can send metrics on to a Prometheus server.
Metric data models
Both support counters, gauges and histograms, but the details differ. OpenTelemetry supports delta and cumulative temporality and exponential histograms; Prometheus expects cumulative values and has its own naming conventions. When OTel metrics are sent to Prometheus, names and units are translated — check how your backend maps them so dashboards use the expected names.
Using OpenTelemetry and Prometheus together
Many production stacks use both:
- Applications are instrumented with OpenTelemetry SDKs.
- A Collector receives OTLP and, where needed, scrapes existing Prometheus endpoints.
- Metrics go to Prometheus (or a Prometheus-compatible store) for PromQL dashboards and alerts.
- Traces go to a tracing backend such as Jaeger, and logs to a log store.
Recent Prometheus versions can also ingest OTLP metrics directly. Some Prometheus experts still recommend native Prometheus client libraries for metrics-only use cases because they integrate tightly with scraping and service discovery — a reasonable choice if you do not need traces.
Migrating from Prometheus client libraries
If your services already expose Prometheus metrics, you do not need a big-bang migration. A common path is to run a Collector with the Prometheus receiver scraping the existing endpoints, while new services are instrumented with OpenTelemetry SDKs from the start. Dashboards keep working because the data still lands in a Prometheus-compatible store. Over time, services that also need tracing can move to OpenTelemetry instrumentation one by one. Watch metric naming carefully during this period: translated OpenTelemetry names may include unit suffixes, so update queries if names change.
Operational considerations
- Cardinality: both systems suffer when attributes such as user IDs create millions of series. Keep high-cardinality data in traces, not metric labels.
- Health signals: with push, you lose Prometheus's automatic
upmetric; add explicit health checks or alerts on missing data. - Team skills: PromQL knowledge stays valuable, since OTel metrics often end up queried with PromQL.
Which should you choose?
- Only need metrics and alerting in Kubernetes: Prometheus alone is mature and simple.
- Need traces and log correlation too: instrument with OpenTelemetry and keep Prometheus as the metrics backend.
- Want backend flexibility: OpenTelemetry, so you can change storage later.
Frequently asked questions
Can OpenTelemetry replace Prometheus?
Not by itself, because it has no storage or query engine. It can replace Prometheus client libraries for instrumentation while Prometheus stays as the backend.
Can Prometheus receive OpenTelemetry data?
Yes. Prometheus can ingest OTLP metrics, and the Collector can export metrics in Prometheus formats.
Do I need the Collector to use both?
It is not strictly required, but it is the easiest way to scrape existing targets, convert formats and route signals to different backends.
Get OpenTelemetry from the official source
Free and open source (Apache 2.0) — the Go source .zip downloads straight from GitHub.
Downloads the OpenTelemetry Go source code (.zip, main branch) from the official GitHub repository — you stay on this page.