Add missing configuration metadata for graphql metrics

This commit is contained in:
Brian Clozel
2021-07-02 14:57:25 +02:00
parent 2be79c2c73
commit d09f371048
2 changed files with 23 additions and 1 deletions

View File

@@ -3,6 +3,20 @@
{
"name": "spring.graphql.locations",
"defaultValue": "classpath:graphql/"
},
{
"name": "management.metrics.graphql.autotime.enabled",
"description": "Whether to automatically time graphql requests.",
"defaultValue": true
},
{
"name": "management.metrics.graphql.autotime.percentiles",
"description": "Computed non-aggregable percentiles to publish."
},
{
"name": "management.metrics.graphql.autotime.percentiles-histogram",
"description": "Whether percentile histograms should be published.",
"defaultValue": false
}
]
}

View File

@@ -263,7 +263,15 @@ spring.graphql.graphiql.path=/graphiql
=== Metrics
When the starter `spring-boot-starter-actuator` is present on the classpath, metrics for
GraphQL requests are collected. You can configure metrics collection as follows:
GraphQL requests are collected. You can disable metrics collection as follows:
[source,properties,indent=0,subs="verbatim,quotes"]
----
management.metrics.graphql.autotime.enabled=false
----
Metrics can be exposed with an Actuator web endpoint.
The following sections assume that its exposure is enabled in your application configuration, as follows:
[source,properties,indent=0,subs="verbatim,quotes"]
----