https://github.com/bizneo/metro
Plug and play Prometheus metrics of Erlang VM and Ecto for Elixir projects.
https://github.com/bizneo/metro
ecto elixir monitoring prometheus
Last synced: 4 months ago
JSON representation
Plug and play Prometheus metrics of Erlang VM and Ecto for Elixir projects.
- Host: GitHub
- URL: https://github.com/bizneo/metro
- Owner: bizneo
- License: mit
- Created: 2023-11-24T10:39:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T11:04:19.000Z (over 2 years ago)
- Last Synced: 2025-11-21T19:31:22.297Z (7 months ago)
- Topics: ecto, elixir, monitoring, prometheus
- Language: Elixir
- Homepage: https://hex.pm/packages/metro
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```elixir
def deps do
[
{:metro, "~> 0.1.0"},
]
end
```
After that, you need to start Metro within your application:
```elixir
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.