Closed project0 closed 1 year ago
We migrated to otel which takes care of this part and no longer requires a prometheus scraper endpoint.
With other words there is no openmetrics endpoint anymore? There is tons of reference in this repository and the docs does not reflect this breaking change. Also the changelog did not give any hint.
I mean, at least the docs should reflect this and provide guidance: https://www.ory.sh/docs/ecosystem/deployment#prometheus https://www.ory.sh/docs/hydra/self-hosted/production#exposing-administrative-and-public-api-endpoints not to forget the quickstart docker-compose in the repo itself.
So, i am forced to use otel collector?
@aeneasr i played around with making to work with the OTLP protocol, but it does not seem to function. Can you provide some guidance how to setup OTEL with hydra?
I have setup the OTEL environment variables, but it does not seem to be enough in this case:
- name: OTEL_METRICS_EXPORTER
value: "otlp"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: otel-collector.observability.svc.cluster.local:4317
Turns out metrics collection with OTEL is not working (and also not documented), but the Prometheus endpoint is now available under /admin/metrics/prometheus
. This is either a bug/breaking change or documentation is outdated .
Oh, certainly the docs are outdated! Fix is here: https://github.com/ory/docs/pull/1374
Preflight checklist
Describe the bug
There is no
/metrics/prometheus
route in v2. I tried different versions, only in 1.x i could make it work. it seems to me there is just no route bound to the admin anymore.Reproducing the bug
Relevant log output
Relevant configuration
No response
Version
2.0.3
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Kubernetes
Additional Context
No response