mirror of https://github.com/docker/docs.git
Fix the key names for the server health checks
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
37d7ee84ea
commit
cd5015592a
|
@ -114,10 +114,10 @@ func main() {
|
|||
viper.GetString("trust_service.tls_ca_file"),
|
||||
)
|
||||
health.RegisterPeriodicFunc(
|
||||
"Key Manager Healthy", trust.(*signer.NotarySigner).KMHealth,
|
||||
"Key manager operational", trust.(*signer.NotarySigner).KMHealth,
|
||||
time.Second*60)
|
||||
health.RegisterPeriodicFunc(
|
||||
"Signer Healthy", trust.(*signer.NotarySigner).SHealth,
|
||||
"Signer operational", trust.(*signer.NotarySigner).SHealth,
|
||||
time.Second*60)
|
||||
} else {
|
||||
logrus.Info("Using local signing service")
|
||||
|
@ -133,7 +133,7 @@ func main() {
|
|||
return // not strictly needed but let's be explicit
|
||||
}
|
||||
health.RegisterPeriodicFunc(
|
||||
"DB Operation", store.CheckHealth, time.Second*60)
|
||||
"DB operational", store.CheckHealth, time.Second*60)
|
||||
ctx = context.WithValue(ctx, "metaStore", store)
|
||||
} else {
|
||||
logrus.Debug("Using memory backend")
|
||||
|
|
Loading…
Reference in New Issue