Remote Write to another Prometheus

694 views
Skip to first unread message

Dirk Fries

unread,
Mar 19, 2020, 4:36:51 AM3/19/20
to Prometheus Users
Hi @all,

I'd like to send all my metrics from one "main" Prometheus to another one.
I have already found and configured other remote write connections (e.g. to Postgres) but I just can't find a way to do a remote write to another Prometheus.

Does anyone have a hint for me ?

Thanks a lot !

Bye, Dirk

Stuart Clark

unread,
Mar 19, 2020, 4:38:43 AM3/19/20
to Dirk Fries, Prometheus Users
You can't use remote write for this. Instead you can use federation, but
in general it isn't recommended to copy all metrics from one Prometheus
to another.


--
Stuart Clark

sayf eddine Hammemi

unread,
Mar 19, 2020, 5:01:10 AM3/19/20
to Stuart Clark, Dirk Fries, Prometheus Users
Prometheus does not receive it reads/polls, you have two solutions, either to use federation as Stuart said, or you point remote read of the "receiver" instance into the `sender:9090/api/v1/read`.
The second solution will query the data on demand (it won't move the data to the second Prometheus)

Brian Candler

unread,
Mar 19, 2020, 5:05:09 AM3/19/20
to Prometheus Users
You can remote write to an instance of Victoria Metrics, which provides a query API identical to Prometheus.  This means it looks like another prometheus server to all intents and purposes (e.g. you can add it as a prometheus data source in grafana).  The only thing I'm not sure about is whether it can handle alerting rules yet.

Dirk Fries

unread,
Mar 19, 2020, 6:50:21 AM3/19/20
to Prometheus Users
Hi guys,

thanks a lot for your comments :-)

Bye, Dirk
Reply all
Reply to author
Forward
0 new messages