mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-22 06:38:13 +00:00
Temporary fix to disable healthcheck.
This commit is contained in:
@@ -30,13 +30,13 @@ func StartHTTPProxy() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func healthCheck(c *fiber.Ctx) error {
|
func healthCheck(c *fiber.Ctx) error {
|
||||||
query := `{ __typename }`
|
// query := `{ __typename }`
|
||||||
_, err := cfg.Client.GQLClient.Query(query, nil, nil)
|
// _, err := cfg.Client.GQLClient.Query(query, nil, nil)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
cfg.Logger.Error("Can't reach the GraphQL server", map[string]interface{}{"error": err.Error()})
|
// cfg.Logger.Error("Can't reach the GraphQL server", map[string]interface{}{"error": err.Error()})
|
||||||
cfg.Monitoring.Increment(libpack_monitoring.MetricsFailed, nil)
|
// cfg.Monitoring.Increment(libpack_monitoring.MetricsFailed, nil)
|
||||||
return c.SendStatus(500)
|
// return c.SendStatus(500)
|
||||||
}
|
// }
|
||||||
return c.SendStatus(200)
|
return c.SendStatus(200)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user