bizneo / metro

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

Home Page:https://hex.pm/packages/metro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://hex.pm/packages/metro

License:MIT License


Languages

Language:Elixir 100.0%