openMetrics - Metrics via HTTP are not enabled

Hey,

so currently I am testing YouTrack to replace an Jira instance. I read through the documentation and saw, that there is an openMetrics endpoint. In general I can call it, but all I get is 503 - Metrics via HTTP are not enabled. I cannot find a setting about this or see the reason why that's the response. Especially because the call is via https.

The /metrics endpoint works fine, but does not work with prometheus like the openMetrics should.

Any tip or documentation I did not find?

 

Kind regards

Nico

0
2 comments
Official comment

Hi Nico, I'm afraid there is no native support for OpenTelemetry. The openMetrics endpoint you refer to was exposed to the documentation by mistake, and it cannot be used to receive metrics about YouTrack. The metrics provided by the application can be gathered on the Server Metrics page, which makes a request to /api/admin/telemetry (as this is not public API, you can check the GET request with fields in your browser).

Alternatively, you can consider using the OpenTelemetry Instrumentation for Java to gain a deeper insight beyond the basic metrics provided by the native telemetry.

Hey Stanislav,

alright, thanks for the fast reply, we will try OpenTelemetry.

0

Please sign in to leave a comment.