Does prometheus instances need to be the same version for federation?

46 views
Skip to first unread message

Cvijan Uros

unread,
Nov 9, 2020, 7:55:44 AM11/9/20
to Prometheus Users
Hi all, 

Have a question, we have several really old prometheus instances, version 2.2 and want to do some upgrades.. We also have one central prometheus instance in which federation is set up to these two instances.. 

I first upgraded this central instance to 2.19 and now federation metrics are not present. It says 404 server not found, but from the server where my new prometheus instance is installed i can run CURL to my federated instance and i get the metrics. 
So i can run:
ANd I get the output, but from prometheus itself I get 404. 

Setup for this federation is pretty simple:

- job_name: federate
  honor_labels: true
  honor_timestamps: true
  params:
    match[]:
    - '{job!=""}'
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /federate
  scheme: http
  static_configs:
  - targets:
    - federated_instance1
    - federated_instance2

Federation works with the prometheus version which is the same as federated instances. So current stuff works when all is 2.2, but not for some reason when I moved central prometheus to 2.19. 

Do I need to have all the versions to be the same or nearly the same in versions? 

Regards, 
Uros

Cvijan Uros

unread,
Nov 9, 2020, 9:43:17 AM11/9/20
to Prometheus Users
NVM, its problem with the other setup that is infront of those federated instances. 
Reply all
Reply to author
Forward
0 new messages