diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index a5885e376..a38ceec1e 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -587,7 +587,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...func(*config.Config defer func() { if err == nil { configSuccess.Set(1) - configSuccessTime.Set(float64(time.Now().Unix())) + configSuccessTime.SetToCurrentTime() } else { configSuccess.Set(0) }