HealthCheckPlug

Build Status

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"}
  ]
end

Usage

Add the healthcheck into your phoenix router;

# router.ex
forward "/monitoring/health_check", HealthCheckPlug

The docs can be found at https://hexdocs.pm/health_check_plug.

License

Apache License, Version 2.0 © Thiago Santos