On 18/07/2022 17:21, tejaswini vadlamudi wrote:
Can someone point me to the advantages of using remote-write over federation? I understand that remote-write is more of a standard interface in the monitoring domain.
Are there any handy performance measurements that were observed/recorded?

They are really quite different.

Federation is a way of pulling data from a remote Prometheus into (generally) a local one. The puller gets to choose how often to pull data and what data to fetch. If the puller can't fetch the data for any reason (local/remote outage, network issues, etc.) there will be gaps.

Remote write is a way of pushing data from a Prometheus server to "something else", which could be another Prometheus or one of the many things which implement the API (e.g. various databases, Thanos, custom analytics tools, etc.). For these you get all the data (basically as soon as it has been scraped) with the ability to do filtering via relabling. If there is an outage/disconnect data will be queued for a while (too long and things will get lost) so small issues can be handled transparently.

So you have a difference in what data you get - either all (filtered) data or data on a schedule (so in effect a form of built-in downsampling), and who controls that - either the data source Prometheus or the destination.

Which is "better" depends on what you are trying to achieve and the constraints you might have (for example difficulties with accepting network connections or data storage/transfer limits). Don't forget the organisation differences too - for remote write adding/changing a destination (or filter rules) needs changes to every data source Prometheus where federation is purely controlled at the other end, which might be a good or bad thing depending on team responsibilities/timings.

--
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/0a925bd8-4cbb-99ff-c372-311488751943%40Jahingo.com.

Reply via email to