Baljeet Yadav
Baljeet Yadav

Reputation: 1

How to fetch data from two prometheus servers into single grafana dashboard?

I have metrics in two different prometheus servers, can I directly use both into single Grafana Dashboard? I have tried but not able to find any way to use 2 different sources into single Dashboard. Does anyone did similar things, if yes please share the steps. Below is the reference to select data source in Grafana

enter image description here

I have metrics in two different prometheus servers, can I directly use both into single Grafana Dashboard? I have tried but not able to find any way to use 2 different sources into single Dashboard. Does anyone did similar things, if yes please share the steps.

Upvotes: 0

Views: 418

Answers (1)

Tasrie IT Services
Tasrie IT Services

Reputation: 66

You need to create two different datasources as prometheus named:

  • prometheus-1
  • prometheus-2

https://grafana.com/docs/grafana/latest/datasources/

Then in your dashboard go to variables and create a new variable which queries data sources. ex: query_result(datasources{type="prometheus"})

Upvotes: 1

Related Questions