Skip to content

Commit 86ad6a3

Browse files
authored
Merge pull request #238 from mengqiy/disable_metrics_by_default
✨ change metrics default to off
2 parents 8f98fb7 + f332dbe commit 86ad6a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/metrics/listener.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import (
2323

2424
// DefaultBindAddress sets the default bind address for the metrics
2525
// listener
26-
var DefaultBindAddress = ":8080"
26+
// The metrics is off by default.
27+
// TODO: Flip the default by changing DefaultBindAddress back to ":8080" in the v0.2.0.
28+
var DefaultBindAddress = "0"
2729

2830
// NewListener creates a new TCP listener bound to the given address.
2931
func NewListener(addr string) (net.Listener, error) {

0 commit comments

Comments
 (0)