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

44 Views Asked by At

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.

1

There are 1 best solutions below

0
Tasrie IT Services On

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"})