On 27.09.21 07:16, Ashmita wrote: > > The above data is being requested from 2 prometheus instances which are > load balanced over OpenShift. Any idea on how can we modify the API request > to fetch data from either one of them or receive complete set of values > from all instances to calculate aggregated value?
You could try to find out if your loadbalancer has any option for sticky sessions or consistent routing so that you will hit the same Prometheus server as long as it is still up. Prometheus itself is deliberately not a distributed system and has no built-in mechanims to stitch together replies from different Prometheus servers. One idea behind https://thanos.io/ was to provide such a layer. So you could look into that. More generally, you might want to check out the many remote storage solutions: https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] [email protected] -- 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/20211007112623.GQ9442%40jahnn.

