When using spring-graphl with spring-boot 2, I can set the following properties:
management.graphql.autotime.percentiles-histogram: true
and I can get percentile histogram data metrics in prometheus with metrics named: graphql_datafetcher_seconds_bucket
.
With the release of spring-boot 3, I see that spring-graph added observability support using Micrometers Observability api, and with that I no longer see any percentile histogram metrics. The configuration property mentioned above is Is there a configuration I'm missing somewhere or is it no longer supported in spring-graphql?
Indeed, autotime support has been removed in Spring Boot 3.0 for Spring for GraphQL because @Timed
is not supported for this instrumentation.
You can replace this with a per-metric configuration:
management.metrics.distribution.graphql.percentiles-histogram=true