Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two Prometheus with same data repository

Tags:

prometheus

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.

like image 662
Sudhir Maurya Avatar asked May 16 '26 19:05

Sudhir Maurya


2 Answers

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.

like image 119
trallnag Avatar answered May 19 '26 02:05

trallnag


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.

like image 44
valyala Avatar answered May 19 '26 04:05

valyala



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!