diff --git a/metrics/metrics.go b/metrics/metrics.go index 2a2b804e7..5910fb073 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -19,7 +19,7 @@ import ( // // This global kill-switch helps quantify the observer effect and makes // for less cluttered pprof profiles. -var Enabled bool = false +var Enabled = false // MetricsEnabledFlag is the CLI flag name to use to enable metrics collections. const MetricsEnabledFlag = "metrics" diff --git a/metrics/opentsdb.go b/metrics/opentsdb.go index df7f152ed..3fde55454 100644 --- a/metrics/opentsdb.go +++ b/metrics/opentsdb.go @@ -10,7 +10,7 @@ import ( "time" ) -var shortHostName string = "" +var shortHostName = "" // OpenTSDBConfig provides a container with configuration parameters for // the OpenTSDB exporter