code: func newDiagnosticsCollector(host string) *diagnosticsCollector { // nolint: unparam
  	return &diagnosticsCollector{
  		host:       host,
  		VersionURL: defaultVersionCheckURL,
  		startTime:  time.Now().Unix(),
  		start:      time.Now(),
  		client:     &http.Client{Timeout: 10 * time.Second},
  		metrics:    make(map[string]interface{}),
  		Logger:     logger.NopLogger,
  	}
  }
docs: // newDiagnosticsCollector returns a new DiagnosticsCollector given an addr in the format "hostname:port".