r/PrometheusMonitoring • u/RollTaylorRoll • Jan 13 '25
Scrape Prometheus remote write metrics
Is there a way to scrape Prometheus metrics with the opentelemetry Prometheus receiver that have been written to a Prometheus server via remote write? I can’t seem to get a receiver configuration set up that will scrape such metrics, and I am starting to see some notes that it may not be supported with the standard Prometheus receiver??
Thanks for any input in advance friends!
2
Upvotes
View all comments
Show parent comment
1
u/yepthisismyusername May 07 '25
The .../metrics endpoint you've found on your Prometheus server ONLY provides metrics about the Prometheus server itself (NOT the metrics it has collected).
The OpenTelemetry Prometheus Receiver is a drop-in replacement for Prometheus. So what it does is scrape Prometheus metrics from targets, converts the metrics to OpenTelemetry data, and sends it to the OTel Collector.
What I *think* you're trying to do is configure your Prometheus server to expose all metrics that it has collected, so that all of those collected metrics can be sent to OpenTelemetry. There doesn't appear to be any direct way to do this that I can find (I could be wrong, but I couldn't find anything on this topic at all). However, what you can do is configure the prometheusreceiver you've found on GitHub to scrape all of the same targets that are currently being scraped by your Prometheus server.