Skip to content

Commit 57cf36b

Browse files
committed
Add /livez endpoint.
1 parent 2a0302a commit 57cf36b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ I wanted to monitor the queries and responses of our graphql endpoint. Still, we
1717
* `:8080/*` - the graphql passthrough endpoint
1818
* `:9393/metrics` - the prometheus metrics endpoint
1919
* `:8080/healthz` - the healthcheck endpoint
20+
* `:8080/livez` - the liveness probe endpoint
2021

2122
### Features
2223

server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ func StartHTTPProxy() {
2525
server.Get("/*", proxyTheRequest)
2626

2727
server.Get("/healthz", healthCheck)
28+
server.Get("/livez", healthCheck)
29+
2830
err := server.Listen(fmt.Sprintf(":%d", cfg.Server.PortGraphQL))
2931
if err != nil {
3032
cfg.Logger.Critical("Can't start the service", map[string]interface{}{"error": err.Error()})

0 commit comments

Comments
 (0)