Fix the key names for the server health checks

Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
Ying Li 2015-10-14 14:52:31 -07:00
parent 37d7ee84ea
commit cd5015592a
1 changed files with 3 additions and 3 deletions

View File

@ -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")