I am using spring-boot’s (v3) starter together with actuator:
<dependency>
<groupId>com.grafana</groupId>
<artifactId>grafana-opentelemetry-starter</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
and configured everything according to Automatic Instrumentation of Spring Boot 3.x Applications with Grafana OpenTelemetry Starter | Opentelemetry documentation.
Everything seems to work fine (logs, traces), I do get even some metrics, but the app itself has an issue while exporting the metrics:
[grafana.net/...] i.o.e.internal.okhttp.OkHttpExporter : Failed to export metrics. Server responded with HTTP status code 400. Error message: Unable to parse response body, HTTP status message: Bad Request
Any ideas? Are assume it has something to do with prometheus format?