1. OpenTelemetry Collector (Recommended)
The recommended approach is to use the OpenTelemetry Collector to scrape and forward Prometheus metrics to the exporter. This method preserves metric type information better than Prometheus Remote Write due to the more sophisticated type system in OpenTelemetry. Here’s an example configuration for the OpenTelemetry Collector:- Sets up a Prometheus receiver to scrape metrics from your Prometheus instance
- Processes the metrics through a transformation pipeline
- Exports them to Metoro using the OTLP protocol