Skip to content

Commit

Permalink
fixup! chore(transport): do not instrument health routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ioaiaaii committed Nov 23, 2024
1 parent 9d6de25 commit 78cdf88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/controller/httpcontroller/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ func RegisterUIRoutes(app *fiber.App) {

// RegisterHealthRoutes adds liveness and readiness routes for health checks
func RegisterHealthRoutes(app *fiber.App, handler *ContentHandler) {

health := app.Group("/healthz")

// Liveness endpoint: Kubernetes will use this to check if the container is running
app.Get("/healthz/liveness", handler.IsAlive)
health.Get("/liveness", handler.IsAlive)

// Readiness endpoint: Kubernetes will use this to check if the service is ready
app.Get("/healthz/readiness", handler.IsReady)
health.Get("/readiness", handler.IsReady)
}

0 comments on commit 78cdf88

Please sign in to comment.