Combine Multiple Prometheus Exporter

1.5k Views Asked by At

I have a setup where a single machine has a JMX exporter and Node_Exporter. I want to combine these outputs into a single output so that I can create a single dashboard instead of making two dashboards.

Since there are two exporters, they'll be exposed in different ports and I'll have to have different scrape configs with different jobs. If only I can expose both on a single port, I can write re-usable queries with many filter options.

Any ideas how I can do this?

1

There are 1 best solutions below

0
On

While not fully solving your issue, exporter_exporter is a nice small reverse proxy designed specifically to consolidate access to multiple Prometheus exporters through one entry point(port).

But it won't consolidate metrics from several exporters in one output, you still would need to provide separate module parameter to fetch different metrics.

From other side, IIRC, Grafana allows you to have multiple queries for one dashboard, so maybe it's easier just to use that feature?