hydra
hydra copied to clipboard
Serve prometheus metrics from a dedicated port
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [X] I have joined the Ory Community Slack.
- [X] I am signed up to the Ory Security Patch Newsletter.
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