Add /livez endpoint.

This commit is contained in:
2023-10-16 09:09:46 +01:00
parent 2a0302ab75
commit 57cf36ba02
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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
+2
View File
@@ -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()})