Skip to main content
Squasher accepts metrics through OTLP/HTTP. It does not expose a Prometheus remote-write endpoint. Run an OpenTelemetry Collector that you control to translate Prometheus metrics to OTLP before they reach Squasher. This path uses open-source software on your infrastructure. It does not require another hosted observability service.
The Prometheus Alertmanager connector receives alerts. It does not ingest Prometheus metric series.
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
Keep API keys in environment variables or your secret manager. Do not put a real key in the Collector configuration. The Prometheus receiver maps the scrape job to 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. Run otelcol-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
Point Prometheus at the receiver and select the Remote Write 2.0 message:
prometheus.yml
The receiver also requires the Prometheus metadata WAL records feature. If your Prometheus and Collector versions do not support the same Remote Write 2.0 revision, use the scrape receiver instead.
The Remote Write receiver does not support Prometheus summaries or classic histograms. Use native histograms, change the metric type, or use the scrape receiver when you must ingest these metrics.

Control volume

Use Prometheus metric_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

  1. Validate the Collector configuration with your Collector binary.
  2. Start the Collector with SQUASHER_API_KEY set.
  3. Confirm that the Collector reports accepted metric points and no export failures.
  4. Open Metrics in Squasher and find a known metric from checkout-api.
  5. Confirm its service, environment, unit, and labels before widening the rollout.

References

Agent handoff