The Prometheus Alertmanager connector receives alerts. It
does not ingest Prometheus metric series.
Recommended path: scrape targets
Use the Collector’s Prometheus receiver when the Collector can reach each target’s metrics endpoint. The receiver supports standard Prometheus scrape configuration, service discovery, and relabeling.otel-collector-config.yaml
service.name. Add or update
resource attributes when your scrape job does not identify the service and
environment clearly.
Existing Prometheus remote write
If an existing Prometheus server must push data, use the Collector Contrib Prometheus Remote Write receiver. It is not in the core Collector distribution. Runotelcol-contrib or build a custom Collector distribution that includes
prometheusremotewritereceiver.
The receiver is alpha and accepts Remote Write 2.0 only. Its wire compatibility
depends on both the Prometheus and Collector Contrib versions. Collector Contrib
v0.141.0 and earlier supports Prometheus 3.7.x and earlier. Collector Contrib
v0.142.0 and later supports Prometheus 3.8.0 and later. Check the receiver’s
current compatibility table before you upgrade either component.
otel-collector-config.yaml
prometheus.yml
Control volume
Use Prometheusmetric_relabel_configs to remove series that you do not query.
Drop high-cardinality labels before export. Start with one job, inspect its
series in Squasher, and then add the remaining jobs.
For traces, use customer-side tail sampling.
Tail sampling does not apply to metrics.
Verify
- Validate the Collector configuration with your Collector binary.
- Start the Collector with
SQUASHER_API_KEYset. - Confirm that the Collector reports accepted metric points and no export failures.
- Open Metrics in Squasher and find a known metric from
checkout-api. - Confirm its service, environment, unit, and labels before widening the rollout.