Skip to content

Commit ab2a544

Browse files
committed
make the new monitoring config to be disabled by default
Signed-off-by: Chengxuan Xing <[email protected]>
1 parent 20235ed commit ab2a544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc-site/docs/reference/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ title: Configuration Reference
450450
|Key|Description|Type|Default Value|
451451
|---|-----------|----|-------------|
452452
|address|The IP address on which the metrics HTTP API should listen|`int`|`127.0.0.1`
453-
|enabled|Enables the metrics API|`boolean`|`true`
453+
|enabled|Enables the metrics API|`boolean`|`false`
454454
|metricsPath|The path from which to serve the Prometheus metrics|`string`|`/metrics`
455455
|port|The port on which the metrics HTTP API should listen|`int`|`6000`
456456
|publicURL|The fully qualified public URL for the metrics API. This is used for building URLs in HTTP responses and in OpenAPI Spec generation|URL `string`|`<nil>`

internal/apiserver/metrics_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ func initDeprecatedMetricsConfig(config config.Section) {
3232
}
3333

3434
func initMonitoringConfig(config config.Section) {
35-
config.AddKnownKey(Enabled, true)
35+
config.AddKnownKey(Enabled, false)
3636
config.AddKnownKey(MetricsPath, "/metrics")
3737
}

0 commit comments

Comments
 (0)