We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1096fa commit 3ce7ce4Copy full SHA for 3ce7ce4
1 file changed
cmd/janitor/main.go
@@ -87,7 +87,12 @@ func run(cmd *cobra.Command, args []string) {
87
88
// start HTTP server for Prometheus metrics and health check
89
handler := httpapi.Compose(
90
- httpapi.HealthCheckAPI{SkipRequestLog: true},
+ httpapi.HealthCheckAPI{
91
+ SkipRequestLog: true,
92
+ Check: func() error {
93
+ return db.Db.PingContext(ctx)
94
+ },
95
96
pprofapi.API{IsAuthorized: pprofapi.IsRequestFromLocalhost},
97
)
98
mux := http.NewServeMux()
0 commit comments