prometheus-community / prom-label-proxy

A proxy that enforces a given label in a given PromQL query.
Apache License 2.0
248 stars 95 forks source link

fix: support regex for non-query endpoints #226

Closed simonpasquier closed 3 weeks ago

simonpasquier commented 3 weeks ago

PR #171 implemented support for regex label values but only for the query endpoints. This change adds support for all other Prometheus API endpoints.

FYI @sathieu. I remember that we discussed about the issue with the Alertmanager API endpoints but nothing about the non-query Prometheus endpoints. Let me know if the change looks sane.

sathieu commented 3 weeks ago

@simonpasquier Thanks for this PR. lgtm!