On 2021-02-11 10:31, Yotam Loewenbach wrote:
Hey community, does anyone got experience with exporting custom metrics from python code straight to remote storage endpoint (m3db or other), without Prometheus scraping it first and then export it via remote write? Is there a way to achieve it with prometheus client library?
If you are wanting to send things straight to one of the remote write destinations you'd need to use whatever client library they provide, making sure you format the metrics in whichever format they require (which is likely custom to each destination). As that's nothing to do with Prometheus, the client library wouldn't really help.
If you are talking about ingesting metrics into a Prometheus server without scraping, then that's not possible (bar the experimental backfill work using OpenMetrics) as it is not the design that Prometheus uses.
However if you are looking to be using the Python Prometheus client library already what is the issue with scraping your application in the normal way?
-- Stuart Clark -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9a17799cba3c818ed3f5138c108d8808%40Jahingo.com.

