diff --git a/README.md b/README.md index b1ffc82..545c489 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ I wanted to monitor the queries and responses of our graphql endpoint. Still, we * `:8080/*` - the graphql passthrough endpoint * `:9393/metrics` - the prometheus metrics endpoint * `:8080/healthz` - the healthcheck endpoint +* `:8080/livez` - the liveness probe endpoint ### Features diff --git a/server.go b/server.go index be32e24..19611cd 100644 --- a/server.go +++ b/server.go @@ -25,6 +25,8 @@ func StartHTTPProxy() { server.Get("/*", proxyTheRequest) server.Get("/healthz", healthCheck) + server.Get("/livez", healthCheck) + err := server.Listen(fmt.Sprintf(":%d", cfg.Server.PortGraphQL)) if err != nil { cfg.Logger.Critical("Can't start the service", map[string]interface{}{"error": err.Error()})