Reading the API documentation for reading the krat...
# ory-selfhosting
r
Reading the API documentation for reading the kratos version (https://www.ory.sh/docs/kratos/reference/api#tag/metadata/operation/getVersion) the version is not available at `/version`:
Copy code
$ curl -k <https://127.0.0.1:4433/version>
404 page not found
Testing around it is available on the admin port under
/admin/version
:
Copy code
$ curl -k <https://127.0.0.1:4434/admin/version>
{"version":"v1.0.0"}
Not sure if this is a bug in the docu or i am just reading it wrong
b
Hi! nice find, this is a documentation bug. I don’t think we can fix that though, as the documentation comes from our shared library. But I think we can just add the /version endpoint to the public router as well. Thanks for bringing this up.
r
no worries! just mentioning any finds as this is the first time playing around with kratos stuff
not sure if this is similar: https://www.ory.sh/docs/self-hosted/operations/observability
Copy code
$ curl -k <https://127.0.0.1:4434/metrics/prometheus>
<a href="/admin/metrics/prometheus">Temporary Redirect</a>.
So the
/admin
path is missing from the example
(at least it redirects)
b
Kinda, but that’s expected, as the metrics should only be exposed on the admin port. The redirect is just a convienience feature.
r
is there a reason the docs gives the shortened redirect path instead of including the “real” place, saving a round-trip? :)