Moving Prometheus scraping into the OpenTelemetry Collector

Teams that already scrape exporters with Prometheus can route those metrics through the OpenTelemetry Collector's Prometheus receiver, but scaling and alerting still need planning. This page sets out what carries over and when to keep Prometheus.

On this page

Moving Prometheus scraping into the OpenTelemetry Collector: the short answer on effort

Moving existing Prometheus scraping into the OpenTelemetry Collector is a configuration and scaling exercise, not a rewrite of your exporters. Your exporters keep exposing the same HTTP endpoints, and the Collector's Prometheus receiver takes over the pull: it reads the scrape configuration you already maintain, scrapes the same targets, and forwards the samples into the same pipeline that carries your traces and logs. The receiver is beta for metrics, so plan your rollout around that status and check the component's stability level in the Prometheus receiver README against the Collector release you intend to deploy. Most of the effort sits in verifying that metric names, labels and resource attributes arrive as your dashboards and alert rules expect, and in deciding how scraping is divided across Collector instances.

The main scaling constraint is duplication. The receiver cannot yet auto-scale scraping, and running multiple replicas with the same configuration scrapes each target more than once. Before you add replicas, decide who owns each target: a single Collector instance with a clear ownership boundary, or a cluster where the Target Allocator, deployed with the OpenTelemetry Operator, distributes targets across Collectors. Confirm with your platform team whether the Operator is already part of your Kubernetes estate, because that choice shapes the deployment model more than the receiver configuration does. Ask your implementer to show how duplicate series are detected during the parallel run.

Prometheus itself is a separate decision. The Collector does not store or query metrics, so you still need a backend for storage, PromQL queries and alerting. You can keep a Prometheus server as the store and remote write target, move storage to a long-term system, or send metrics to another backend that OpenTelemetry supports. Alert rules and Alertmanager routing are also independent of the scraping move and can stay where they are during the transition. Keep Prometheus scraping instead if your team depends on its PromQL behavior for alerts that must be exact, or if you cannot yet accept beta-stage receiver behavior in production. The Prometheus overview describes Prometheus as favoring reliability over precision, which is a useful test for each alert.

What carries over from Prometheus scrape configs to the Collector

This table maps each part of a Prometheus scrape setup to its Collector equivalent or to the part that stays in Prometheus. Read the Collector column as a starting point, then confirm exact behavior against the Prometheus receiver README, since the metrics receiver is beta and some Prometheus features do not behave identically. The main takeaway is that scrape targets and relabeling usually move, while alerting and recording rules often stay where they are.

Prometheus elementCollector equivalentWhat to confirm before moving
scrape_configs jobsA prometheus receiver block with scrape_configs using the same Prometheus syntaxWhich job options the receiver supports in your Collector version, per the receiver README
Static targetsStatic targets under the receiver's scrape configurationScrape intervals and timeouts set per job still apply as written in the receiver config
Kubernetes or file-based service discoverySupported discovery mechanisms in the receiver, with the Target Allocator for splitting targets across CollectorsWhich discovery types your Collector build includes, and whether the Target Allocator is needed for your cluster
relabel_configsRelabeling in the receiver for scrape-time changes, with processors for later metric changesWhich relabel actions behave the same at scrape time and whether any must move to processors
Metric names and labelsMetrics are converted to OpenTelemetry data points, so names and attributes can change in backendsDashboards, alerts and recording rules that match on names or label sets, tested against the new output
Scrape health series such as upCollector-generated scrape metrics, which may use different names or labelsWhether alerts on target health still fire on the Collector's metric names
Alerting and recording rulesUsually stay in Prometheus or move to a backend's alerting features, not the CollectorWhere rule evaluation runs after the migration and who owns the rule files
Scaling and sharding of scrapesReplicas with the same config scrape targets multiple times, so scaling needs target distributionHow the receiver's scaling limits apply to your target count and cluster layout

Documented import paths for scrape configs and the Target Allocator

Moving scraping into the Collector is a set of separate choices: how the Prometheus receiver reads your existing scrape configs, how targets are spread across replicas, which components the binary includes, and where the data goes. Each card below covers one of those choices and what to confirm before you commit to it.

Prometheus receiver with existing scrape configs

The Prometheus receiver in the Collector accepts a standard Prometheus scrape configuration, so existing scrape_configs blocks are the starting point rather than a rewrite of every job. Review each job for service discovery blocks, relabeling rules and authentication settings, because not every option carries over one for one. There is no one-click converter in the supplied facts, so confirm the receiver's current configuration reference in the release you plan to deploy and test each job against a staging target before cutover.

Metrics stability level
Beta
Prometheus receiver README

Target Allocator with the Operator

Running several Collector replicas with the same scrape configuration scrapes every target more than once, and the receiver cannot yet auto-scale scraping on its own. The Target Allocator, deployed with the OpenTelemetry Operator, distributes scrape targets across a cluster of Collectors. Ask whether your platform team is ready to run the Operator and its custom resources, since this card is the main reason to adopt it on Kubernetes.

Scaling the Collector

Collector builder for minimal components

Each Prometheus job pulls in receivers, processors and exporters, and a Collector build that includes unused components enlarges the attack surface and the upgrade burden. The Collector Builder lets you compile a distribution with only the components your pipelines use. Confirm with your security team which components they accept, and keep the build manifest in version control so the same component set is rebuilt for each upgrade.

OTLP export to your chosen backend

Once metrics leave the Prometheus receiver, they travel through the same pipeline as traces and logs and are sent onward with the OTLP exporter. This keeps the back end a separate decision, so you can keep an existing Prometheus or Mimir-style store, add a new metrics platform, or send to several destinations. Confirm that your chosen back end accepts OTLP metrics directly, and check how it names series, since label and metric name conventions can change dashboards and alerts that depend on them.

Authentication on receivers and exporters

Scrape endpoints and export destinations often need credentials, and the Collector can authenticate incoming connections and add credentials to outgoing requests through authenticator extensions. Decide where scrape credentials and export tokens are stored, who can read the Collector configuration, and how rotation happens without a restart. Confirm which authenticator extensions your build includes before planning the secrets design.

Redaction before export

Exporters and labels from exporters can expose tokens, hostnames or user identifiers that should not leave your network. The OpenTelemetry security guidance recommends the redaction processor to remove sensitive attributes before data is exported. Review sample scrape output for each exporter during testing, and record which labels are dropped or rewritten so that downstream teams know what they no longer see.

How a parallel run and cutover of scraping works

The sequence moves scrape jobs from Prometheus to the Collector one group at a time, with each group checked against Prometheus before its old job is removed. The result is one metrics pipeline that can be rolled back at every stage.

  1. Inventory exporters, targets and scrape jobs

    The platform or monitoring team lists every Prometheus scrape job, its targets, its scrape interval, its timeout, its relabeling rules and the dashboards and alert rules that depend on each metric. Service discovery sources, such as Kubernetes or file-based discovery, are recorded alongside the static targets. The step closes when every job has an owner and a known consumer, and the team can say which jobs are safe to move first. Ask the partner or vendor to confirm which exporters have known gaps in the Collector's Prometheus receiver before any job is selected.

  2. Build a pilot Collector with one job

    Engineers copy one low-risk scrape job into a Collector configuration using the Prometheus receiver, then route its metrics to the same backend that Prometheus writes to. Relabeling and metric names are checked against the original job. The Collector runs as a single instance for this pilot, so no target is scraped by two replicas. The step is complete when the pilot Collector shows the expected series for its targets and the team has recorded any differences in labels or metric types.

  3. Confirm scrape ownership before any overlap

    Before the parallel run starts, the team sets an explicit rule for which system scrapes each target. The Prometheus receiver README warns that the Collector cannot yet auto-scale scraping and that replicas with the same configuration scrape targets multiple times. For a parallel run, the Collector's scrape configuration is limited to a single replica, or sharded by the OpenTelemetry Target Allocator deployed with the Operator, so each target has exactly one Collector scraping it. The step closes when a check confirms no target appears twice in the Collector's scrape pool.

  4. Run Prometheus and the Collector in parallel

    Prometheus and the Collector scrape the same targets for a period agreed in advance, and both write to separate series or separate storage so results can be compared. The team compares series counts, sample values, label sets and the results of key PromQL queries and alert rules. Any mismatch is traced to a cause, such as a relabeling difference, a timeout or a metric type change. The step closes when the agreed comparison period has finished with each difference either fixed or accepted in writing by the metric owners.

  5. Cut over one scrape group at a time

    Once a group of jobs matches, its Prometheus scrape configuration is removed and the Collector becomes the only scraper for those targets. Groups are moved in a fixed order, starting with the least critical, and dashboards and alerts are pointed at the Collector's output as each group changes. The old configuration is kept in version control so the group can be restored quickly. The step closes when the group has run on the Collector alone through its review and no alert or dashboard has lost data.

  6. Retire remaining Prometheus scrape jobs

    When every group has moved, the remaining Prometheus scrape configuration is emptied, and Prometheus is either removed or kept only for the functions the team still needs, such as rule evaluation or alerting. Alertmanager configuration stays in place where alerts are still sent from Prometheus. The team confirms that no scrape job still points at Prometheus and that the Collector's health metrics are monitored. The step closes with a written record of which jobs moved, when they moved and who approved each move.

  7. Decommission the old scraping setup

    The team removes the Prometheus servers that no longer scrape anything, updates runbooks and on-call documentation, and deletes the leftover scrape configurations, credentials and network rules that were only needed for the old setup. Storage used by the retired servers is kept for the retention period the team has agreed for historical queries. The step is complete when the decommissioning list is signed off and a post-move review has recorded any issues for follow-up.

Why scaling scrapes across Collector replicas is the main limit

The main limit of running the Collector's Prometheus receiver at scale is that scraping does not scale on its own. The receiver is beta for metrics, and its README states that the Collector cannot yet auto-scale scraping. If you run several replicas with the same scrape_configs, every replica scrapes every target, so each series arrives more than once and your scrape load multiplies with the replica count. Before you move a fleet of exporters, decide how many Collector instances will scrape, and confirm with the current receiver README which scaling behavior applies to the release you plan to deploy.

The supported answer for clusters is the Target Allocator, which runs alongside the OpenTelemetry Operator. It discovers Prometheus scrape targets, then assigns each target to one Collector in a pool so that replicas share the work without duplicating it. Your Collectors are then deployed as an OpenTelemetry Collector custom resource, and the Operator manages the Target Allocator and the scrape assignments. This means you run more Kubernetes components: the Operator and its CRDs, the Target Allocator deployment, service accounts and RBAC for target discovery, and the Collector pool itself. Each component needs an upgrade path, and the Operator version has to match the Collector versions it manages.

Plan for this operational cost before you commit to the pattern. Ask your team to confirm how the Target Allocator handles target reassignment when Collectors are added, removed or restarted, and how long series gaps last during that change. Also confirm which Prometheus service discovery mechanisms your targets need, since the allocator must be able to see them. A small, illustrative example: a team with three exporters and one Collector may not need the Operator at all, while a cluster with hundreds of scrape targets across several nodes usually does. Compare the two options against your own target count and how often your targets change.

What drives the cost and duration of the move

This table lists the factors that change how much work moving Prometheus scraping into the Collector takes and who pays for it. Read each row as a question to answer in your own environment before asking for a quote. The main takeaway is that the Collector itself is Apache-2.0 licensed, so most of the cost sits in implementation, relabeling, dashboard rewrites and the people who run the result.

DriverWhy it changes cost or effortHow to keep it down
Number of exporters and targetsEach exporter has its own scrape jobs, labels and failure modes to validate, so effort grows with the target inventory.Export the current scrape configuration, group targets by job, and move the simplest jobs first.
Kubernetes or VM hostsKubernetes targets rely on service discovery and the Target Allocator, while VM targets often use static configuration that must be re-created.Confirm which discovery mechanisms each job uses before estimating the build.
Target Allocator useThe Target Allocator, deployed with the OpenTelemetry Operator, distributes targets across a cluster of Collectors. Adding it means running and operating the Operator.Decide early whether you need more than one Collector replica for scraping.
Relabeling complexityExisting relabel_configs and metric_relabel_configs must be translated into Collector receiver and processor settings and checked against the same output.Keep relabeling rules short and move rules that drop or rename series into one reviewed file.
Dashboard and alert rewritesSeries names, labels and job names may change during the move, so PromQL in dashboards and Alertmanager rules may need edits and retesting.Inventory dashboards and alerts that depend on each metric before cutover.
Teams whose queries changeEvery team that owns a dashboard, alert or recording rule has to review its queries, which adds coordination time.Name an owner for each affected dashboard and set a sign-off step.
Security configuration of receivers and exportersAuthentication on receivers, credentials on exporters, TLS and network exposure all add configuration and review work.Set the security baseline once in a template and reuse it across Collectors.
Parallel run lengthRunning Prometheus and the Collector side by side to compare results adds infrastructure and monitoring time until the outputs match.Agree the comparison criteria and the exit condition in the written scope before work starts.

What usually goes wrong when Prometheus scraping moves

Most problems in a Prometheus-to-Collector move come from changed scrape behavior, not from missing data. The cards below cover the failure points teams hit most often, and each pairs the problem with a check or control to run before cutover.

Duplicate scrapes from replicas

Running more than one Collector replica with the same Prometheus receiver configuration makes every replica scrape every target, which inflates series and load on exporters. The Collector cannot yet auto-scale scraping, so scale-out needs a deliberate split of targets. Plan to use the Target Allocator with the OpenTelemetry Operator, and check that each target shows a single scrape source before adding replicas.

Collector scaling guide

Metric and label names that break alerts

The receiver keeps Prometheus metric names, but resource attributes, job and instance labels, and any relabeling you move into the Collector can change what dashboards and alert rules match. Run the old Prometheus and the new pipeline side by side for a comparison window, then diff the series names and label sets for every alert expression before you retire the original scraper.

Beta receiver behavior

The Prometheus receiver is beta for metrics, so behavior around edge cases such as scrape configuration features and stability can change between Collector releases. Pin the Collector version in your build, read the receiver README for the release you deploy, and keep an upgrade test that replays your real scrape configuration.

Prometheus receiver README

Collector endpoints bound or exposed incorrectly

Collector receivers and extensions expose network ports that can accept telemetry from any host that reaches them. Since v0.110.0, server components bind to localhost by default, but gateways that must accept traffic from other hosts need explicit binding. Configure authenticator extensions such as OIDC on receivers, restrict network paths, and confirm with a port scan that only intended interfaces are open.

Collector security best practices

Lost staleness and recording rule behavior

Prometheus marks series stale when a target disappears, and your recording rules and alert conditions often depend on that behavior. The Collector pipeline does not reproduce these semantics automatically, so absent-series alerts and rules that rely on gaps may fire differently. Inventory every recording rule and alert that uses absent, staleness or time-based functions, and test each one against the new data path before cutover.

Cardinality growth after the move

Moving scraping often adds resource attributes, pod labels or extra metadata that multiply series counts. Storage and query costs grow with each new label combination, and the increase may appear only after the new pipeline runs for a while. Measure active series per job before and after the move, and use the redaction processor and attribute filters to drop labels that carry sensitive or unbounded values.

Redaction guidance

When to keep Prometheus scraping instead

Prometheus documents that it values reliability over precision and is not a good choice where 100% accuracy is required, such as per-request billing. Metrics that feed invoices, contractual service credits or financial reconciliation carry that requirement. Moving their collection into a shared pipeline does not change the underlying trade-off, because the Collector's Prometheus receiver inherits the scrape model and its limits.

  • Billing and metering: Counters used to charge customers need exact, complete records, so confirm how scrape gaps and restarts are handled before relying on them.
  • Contractual reporting: Service credits written against a measured availability figure should be backed by a source that you have validated for completeness.
  • Event-level truth: If each event must be recorded, consider an event pipeline or a transactional store instead of sampled metrics.
  • Duplicate-prone setups: Replicated Collectors with the same scrape configuration scrape targets more than once, which can distort counters that are summed across replicas.
  • Verification: Ask your metering owner to document the accepted error margin in writing before changing the collection path.

Check whether the metric in question is used for decisions with a financial or contractual consequence, and keep its original scraper until that question has an answer.

What to plan for Prometheus releases and storage during the move

Decide early which Prometheus version line stays in the design, because the release model affects how long any retained server can run safely. Prometheus starts a new minor release cycle every 6 weeks, and a minor release generally stops receiving bug fixes after those 6 weeks. For a server you expect to run for a long time, the long-term support (LTS) line is the more stable choice. The current LTS line is 3.13, released July 1, 2026 and supported until July 31, 2027, while LTS 3.5 reached end of life on July 31, 2026. Any Prometheus that stays in the design should sit on a supported line, and you should confirm the current patch level and end-of-life dates on the Prometheus release cycle page before the design is approved.

Storage is the second planning item. Prometheus keeps samples in a local time series database with a write-ahead log, and the default retention is 15 days, which you can set by time or size through the retention flags. Local storage is single-node and not replicated, so a lost or corrupted disk means lost history unless you have backups or remote write to external long-term storage. If the Collector takes over scraping but a Prometheus server remains for alerting or queries, plan its disk, retention and recovery on their own terms, and confirm with your team how much history the dashboards and alert rules actually need. Ask for a written statement of which data is kept where and for how long before cutover.

Questions buyers ask before moving Prometheus scraping

What does it cost to move Prometheus scraping into the Collector?

The cost is mostly the labor to translate and test scrape configuration, plus the infrastructure to run Collectors. The Prometheus receiver and Collector are open source under Apache-2.0, so there is no license fee for the software itself. The main drivers are the number of scrape jobs and exporters, how many targets each job covers, whether you run Collectors as agents or as a gateway, and how much validation your change process requires. Ongoing costs include compute, the back end that stores the metrics, and the time your team spends maintaining the configuration. Ask any quote to separate one-time implementation work from recurring operations support, and to list which scrape jobs and back ends are in scope.

How long does a move from Prometheus scraping to the Collector take?

Duration depends on how many scrape jobs exist, how complex their relabeling rules are, and how many dashboards and alerts depend on the current metric names. A small estate with a few static targets moves faster than a Kubernetes environment with dynamic service discovery and many custom exporters. Parallel running, where both paths scrape the same targets while results are compared, adds time but reduces the risk of silent gaps. Ask for a written timeline that names the phases: inventory, configuration translation, parallel validation, cutover and retirement of the old scraper. A timeline is only meaningful once the scope is agreed in writing.

What does the client team need to provide for this work?

The work needs access to the existing Prometheus configuration, the list of exporters and the targets they cover, and the owners of each service being scraped. It also needs the dashboards, recording rules and alert rules that query these metrics, because those are the artifacts most likely to break after a change. Your team should provide a test or staging environment that resembles production, a change window for cutover, and a decision on which back end will store the metrics. Someone who can approve network changes between the Collector and targets is also needed, particularly if the Collector runs in a different network zone.

Can our own platform team do this move without a partner?

A team with Prometheus and Kubernetes experience can often do the move alone, especially for a limited number of scrape jobs. The gaps usually appear in three places: scaling scrape targets across several Collector replicas, validating that metric names and labels still match existing queries, and building the security controls around Collector endpoints. The Target Allocator, deployed with the OpenTelemetry Operator, is the documented way to spread scrape targets across a Collector cluster, and teams new to it should plan time to learn it. Decide early whether internal staff will own the result after handover, because that determines how much knowledge transfer belongs in the scope.

Do we have to remove Prometheus after moving scraping to the Collector?

No. Many teams keep Prometheus for alerting, for querying with PromQL, or as a fallback while the Collector path matures. Prometheus is open source under Apache-2.0 and works well with a Collector that forwards metrics to it through remote write. The decision depends on whether your alerting, dashboards and skills are built around Prometheus, and whether you need one pipeline for traces, metrics and logs. Keeping Prometheus in place also keeps its storage limits in view: local storage is single-node, is not clustered or replicated, and by default retains data for 15 days. Choose between removing it, keeping it as a query layer or keeping it for scraping on a documented basis.

What happens to our alerts when scraping moves to the Collector?

Alert rules keep working only if the metric names, labels and values they depend on remain the same after the move. Some Collector paths can change naming or label handling, so every alert should be mapped to the metrics it uses and checked against live data during parallel running. Alertmanager handles grouping, inhibition and silences for alerts that Prometheus sends, and it can run as a cluster for high availability. Prometheus should point at every Alertmanager instance rather than a load balancer. If alerting moves to a different tool, plan the routing rules, silences and on-call escalation as part of the same change so that no alert goes quiet during cutover.

Is the Prometheus receiver ready for production scraping?

The Prometheus receiver is beta for metrics, so it is ready for production only after your team has tested it against your own targets and accepted its limits. The receiver's documentation warns that the Collector cannot yet auto-scale scraping, and that running replicas with the same configuration scrapes targets multiple times. Plan a deployment model that assigns each target to one Collector, usually through the Target Allocator, and verify that no target is scraped twice before cutover. Also check the stability level of each component you use, since core Collector components have mixed stability levels documented in their READMEs. Ask for a written statement of which components and settings are covered and tested.

How Collector scraping fits with Prometheus storage and alerting

The diagram starts at the application exporters, which the Collector scrapes through its Prometheus receiver. In a Kubernetes cluster, the Target Allocator from the OpenTelemetry Operator hands scrape targets to Collector replicas so each target is scraped once. The Collector then sends metrics over OTLP across the trust boundary to the chosen metrics backend. Prometheus and Alertmanager appear only where they are kept, and the reader should check that each scrape path has exactly one owner.

Generic architecture showing scrape ownership, export and the cluster trust boundary.

How DeployOpen scopes and delivers a Prometheus-to-Collector move

DeployOpen starts every Prometheus-to-Collector move by inventorying what is scraped today, because the scrape configuration is the real scope. The inventory covers each scrape_configs job, its service discovery method, relabeling rules, scrape intervals and timeouts, any metric_relabel_configs that drop or rename series, and the alerting and recording rules that depend on those series. It also records which exporters are third-party and which are application endpoints, since each may need a different receiver setup or a change on the target side. The output is a written list of jobs with an owner, a destination and a decision for each: move to the Collector, keep on Prometheus, or retire. Clients should confirm early who owns each job and who can approve changes to dashboards and alerts.

Next, DeployOpen plans the Collector deployment inside your own clusters, data centers or cloud accounts. The main decision is how targets are split across Collectors. A plain Prometheus receiver replica set can scrape the same targets more than once, and the receiver documentation notes that the Collector cannot yet auto-scale scraping. Where Kubernetes is in use, the plan usually evaluates the Target Allocator deployed with the OpenTelemetry Operator, as described in the OpenTelemetry scaling guide. Authentication for scrape targets, network paths, resource limits and the Collector distribution are documented in the same plan, with the security settings from the Collector configuration best practices applied.

DeployOpen then runs a parallel comparison: both pipelines scrape the same targets for an agreed period, and series names, labels, counts and sample timing are compared against the Prometheus baseline. Differences are logged and resolved before any cutover, and alerts are tested against the new data. Deliverables are agreed in writing before work starts, usually as a fixed scope covering the inventory, the Collector configuration, the comparison report, runbooks and handover. Pricing follows from that written scope, and DeployOpen does not publish a price list. Ongoing support, Collector upgrades and continuous checks are available as retainers 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.