mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
last config success time gauge: use SetToCurrentTime() (#3750)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
7dc05538f7
commit
8b20cb1e8d
|
@ -587,7 +587,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...func(*config.Config
|
||||||
defer func() {
|
defer func() {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
configSuccess.Set(1)
|
configSuccess.Set(1)
|
||||||
configSuccessTime.Set(float64(time.Now().Unix()))
|
configSuccessTime.SetToCurrentTime()
|
||||||
} else {
|
} else {
|
||||||
configSuccess.Set(0)
|
configSuccess.Set(0)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue