hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Serve prometheus metrics from a dedicated port

Open alnr opened this issue 5 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

Prometheus metrics are currently only served from Hydra's admin port, to shield them from public access. This means it is currently impossible to scrape metrics from a Hydra instance invoked as hydra serve public.

Describe your ideal solution

Allow configuration of a dedicated port which serves only metrics and nothing else. hydra serve public should the open two ports. One for public access and one just for metrics. The Admin API must remain inaccessible for such processes.

Workarounds or alternatives

Keep scraping metrics from the admin port 🤷

Version

any

Additional Context

low prio

alnr avatar Sep 16 '24 12:09 alnr