HA scrape target

13 views
Skip to first unread message

sayf eddine Hammemi

unread,
Apr 7, 2020, 3:30:54 PM4/7/20
to Prometheus Users
Hello
I have two scrape configs that provide the same metrics +- timestamps ofc for HA reasons. is there any simple way to configure Prometheus to ignore one and take another ? so if one of them is down we switch to the second. I am trying to avoid using HA DNS apparatus
Thanks

Jake Utley

unread,
Apr 7, 2020, 7:04:09 PM4/7/20
to Prometheus Users
Are you saying that you have one Prometheus instance that has redundant scrape configurations? That's an unusual pattern. Usually you want to have two Prometheus instances with identical configurations for high availability. Generally you can scrape either one and you'll get a reasonable result, or you can use Thanos or Cortex to deduplicate the HA data.
Reply all
Reply to author
Forward
0 new messages