Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/rekor-server/app/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ var serveCmd = &cobra.Command{
api.ConfigureAPI(treeID)
server.ConfigureAPI()

http.Handle("/metrics", promhttp.Handler())
utilMux := http.NewServeMux()
utilMux.Handle("/metrics", promhttp.Handler())
utilHandler := middleware.Heartbeat("/ping")(utilMux)
go func() {
srv := &http.Server{
Addr: ":2112",
Handler: utilHandler,
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
}
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ services:
trillian-log-server:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/ping"]
# health check is on the util port
test: ["CMD", "curl", "-f", "http://localhost:2112/ping"]
interval: 10s
timeout: 3s
retries: 15
Expand Down
Loading