Skip to content
/ metro Public

Plug and play Prometheus metrics of Erlang VM and Ecto for Elixir projects.

License

Notifications You must be signed in to change notification settings

bizneo/metro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metro

This package provides basic Prometheus metrics of Erlang VM and Ecto for Elixir projects.

It exposes a new endpoint in a different port with the Prometheus endpoint at /metrics.

Installation

The package can be installed by adding metro to your list of dependencies in mix.exs:

def deps do
  [
    {:metro, "~> 0.1.0"},
  ]
end

After that, you need to start Metro within your application:

defmodule MyApp.Application do
  def start(_type, _args) do
    children = [
      # Start metrics
      {Metro, app: :my_app, port: 9000}
    ]
  end
end

and metrics will be available at http://localhost:9000/metrics once you start your application.