Add missing configuration metadata for graphql metrics
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user