qgadrian / metadata_plugs

Elixir plugs to provide metadata information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage Status Hex version Hex Docs Build Status Deps Status

MetadataPlugs

Collection of plugs to provide different metadata information.

Plugs included:

Installation

Add to dependencies

def deps do
  [{:metadata_plugs, "~> 0.3.2"}]
end

Install dependencies

mix deps.get

Plugs

Health

Just add the plug to the endpoint file

plug(MetadataPlugs.Health)

Default path for this plug is /health, which can be overwritten:

plug(MetadataPlugs.Health, path: "/healthz")

Info

Add the plug to the endpoint file with the desired environment variables to get the info from.

plug(MetadataPlugs.Info, env_vars: ["APP_VERSION", "ENVIRONMENT"])

Default path for this plug is /info, which can be overwritten:

plug(MetadataPlugs.Info, path: "/infoz")

About

Elixir plugs to provide metadata information

License:MIT License


Languages

Language:Elixir 100.0%