Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.19 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.19 KB

GrpcHealthCheck

GrprHealthCheck implements the official Grpc health checking interface in Elixir. It can be used to check if Elixir based Grpc servers are up and running.

More on Grpc health checks:

Installation

Add this to your list of dependencies in mix.exs:

def deps do
  [
    {:grpc_health_check, github: "renderedtext/grpc_health_check"}
  ]
end

And also add the health check server to your supervision tree:

services = [
 ...,
 GrpcHealthCheck.Server
]

children = [
  supervisor(GRPC.Server.Supervisor, [{services, port}])
]

Supervisor.start_link(children, opts)

If you're not running the GRPC workers as a part of a supervision tree, run the server alongside the rest of your GRPC workers.

Usage

The health check server will be running with you application.

Running mix healthcheck will run the health check client and call the health check service.