Description
prometheus.erl is a Prometheus client for Erlang. It lets an Erlang application define and update metrics, then export them in the Prometheus text format for scraping. The library provides counters for event counts, gauges for instantaneous values, histograms for distributions, summaries for event sizes, and booleans for on-off states, plus a registry for working with them. Metrics are created with new or declare functions. The README includes a console session showing how to start the app, register metrics, use them, and export them as text. For a ready-made HTTP endpoint, it points to the Inets HTTPD exporter or the Cowboy 1 and 2 exporters. The project lists integrations for Cowboy, OpenCensus, Ecto, Phoenix, RabbitMQ, Fuse and Elixir plug instrumenters, and it includes collectors for Erlang VM memory, Mnesia, statistics and system information. Rebar3 is the supported build tool. The source is public on GitHub.…
Highlights
- Counter, gauge, histogram, summary and boolean metrics
- Registry for working with metrics
- Export in the Prometheus text format
- Collectors for Erlang VM, Mnesia and OS process info
- Integrations for Cowboy, Phoenix, Ecto and RabbitMQ
Ratings & Reviews
No ratings yet
Be the first to rate Prometheus.erl.
People also visit
Phoenix Live Dashboard
Realtime dashboard with metrics, request logging, plus storage
Prometheus.erl FAQ
What is prometheus.erl?
A Prometheus client library for Erlang that defines metrics in your app and exposes them for scraping.
Which metric types are available?
Counters, gauges, histograms, summaries and booleans, all created with new or declare functions.
How do I expose metrics over HTTP?
Use the Inets HTTPD exporter or the Cowboy 1 or 2 exporters, which the README links to.
What build tool does it use?
Rebar3 is supported, according to the compatibility section of the README.
What are the best Prometheus.erl alternatives?
Popular alternatives to Prometheus.erl include Prometheus.ex, Client JS and Phoenix Live Dashboard. See all Prometheus.erl alternatives

