Can two Prometheus server write to same remote data storage endpoint without any duplicate data created ? I am trying to build setup with 2 Prometheus server for high availability.
No, this is out of scope of the Prometheus project. Look into something like Thanos or Cortex. Both of these solutions provide scalability and high availability. Something like VictoriaMetrics may also be an option if your environment isn't Kubernetes based and you prefer something "simpler" at least regarding the setup.
It is possible to write data from multiple identically configured Prometheus instances (aka HA pair) to the same remote storage such as VictoriaMetrics. In this case data de-duplication must be enabled on VictoriaMetrics side - see these docs for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With