KomachiHeartbeat v0.4.0 KomachiHeartbeat View Source

Mount this using Plug.Router.forward/2 or Phoenix.Router.forward/4.

In Plug app.

defmodule Example.Router do
  use Plug.Router

  plug(:match)
  plug(:dispatch)

  forward("/ops", to: KomachiHeartbeat)
end

In Phoenix app.

defmodule ExampleWeb.Router do
  use ExampleWeb, :router

  forward("/ops", KomachiHeartbeat)
end

We can use GET /MOUNT_PATH/heartbeat & GET /MOUNT_PATH/stats.

Link to this section Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.