converting prometheus.Metric to data suitable for ingesting by prometheus write protocol.

11 views
Skip to first unread message

Alexey Lesovsky

unread,
Dec 2, 2020, 1:36:33 AM12/2/20
to Prometheus Users
Hi,
I have metrics received from collector over channel like "chan<- prometheus.Metric".
The 'prometheus.Metric' is an interface with Desc and Write methods from 'github.com/prometheus/client_golang/prometheus' package.

I'd like to send these metrics into another Prometheus using its remote write protocol.
I tried to play with Write method but had no success.

I'd appreciate for any advices.

Regards, Alexey
Reply all
Reply to author
Forward
0 new messages