No description
  • Elixir 97.2%
  • HTML 2.8%
Find a file
2020-09-29 11:13:36 -06:00
config Initial commit for prometheus-phx 2020-09-15 10:00:09 -06:00
lib Temporarily ignore non-conforming requests 2020-09-29 11:13:36 -06:00
test Reorder labels 2020-09-21 09:41:47 -06:00
.formatter.exs Initial commit for prometheus-phx 2020-09-15 10:00:09 -06:00
.gitignore Initial commit for prometheus-phx 2020-09-15 10:00:09 -06:00
LICENSE Initial commit 2020-09-15 09:58:18 -06:00
mix.exs Logging & applications to start 2020-09-18 13:30:00 -06:00
mix.lock Initial commit for prometheus-phx 2020-09-15 10:00:09 -06:00
README.md Update README 2020-09-15 10:02:39 -06:00

PrometheusPhx

A Phoenix 1.5+ telemetry handler for Prometheus

Getting Started

You can add PrometheusPhx as a dependency in your mix.exs file. In Phoenix 1.5 the telemetry instrumentation was changed and events have to be handled. This prevents libraries like prometheus-phoenix from working with newer versions of phoenix. So there are some minimum requirements. PrometheusPhx does require Elixir 1.7 or greater and Phoenix 1.5 or greater.

def deps do
  [ { :prometheus_phx, github: "theblitzapp/prometheus-phx" } ]
end

After running mix deps.get you can add the prometheus-phx setup call to your application module.

defmodule MyPhoenixApp.Application do
  use Application

  def start(_type, _args) do
    children = [
      MyPhoenixApp.Endpoint.
      ...
    ]

    PrometheusPhx.setup()

    Supervisor.start_link(children, [])
  end
end