HealthCheckPlug
Check your application health by always return 200 with the body {"status":"ok"}.
It is useful to setup monitoring tools that hit this endpoint to check if you app is alive.
Installation
The package can be installed
by adding health_check_plug to your list of dependencies in mix.exs:
def deps do
[
{:health_check_plug, "~> 0.1.0"}
]
endUsage
Add the healthcheck into your phoenix router;
# router.ex
forward "/monitoring/health_check", HealthCheckPlugThe docs can be found at https://hexdocs.pm/health_check_plug.