jacksontj / promxy

An aggregating proxy to enable HA prometheus
MIT License
1.14k stars 128 forks source link

having different path_prefix per target? #658

Closed keyolk closed 3 months ago

keyolk commented 3 months ago

We are migrating our Prometheus data sources. Considering Promxy to maintain a consistent datasource endpoint. The data sources have different path prefixes, so I can't let them in the same server group. If I want to have merged data points from those, what can I try? Is there any workaround to resolve this?

In our use case, some metrics are dual written to the multiple data sources, and some metrics not.

keyolk commented 3 months ago

found I can use relabel target __path_prefix__