talira

Prometheus.ex

Elixir client for Prometheus metrics

open sourceMITfree

Prometheus.ex is an Elixir client for Prometheus, built on the Erlang client Prometheus.erl. It defines metrics such as histograms with Elixir-friendly macros (use Prometheus.Metric). The prometheus-erl project around it has collectors and instrumenters for Ecto, Plug, Phoenix and RabbitMQ, and BEAM dashboards for Grafana.

Problems it solves

  • expose Prometheus metrics from an Elixir app
  • instrument a Phoenix app's request latency for Prometheus
  • record custom histograms in Elixir

Features

  • define and observe metrics such as histograms
  • Elixir macros over Prometheus.erl
  • Ecto, Plug and Phoenix instrumenters in the same project

Alternatives

The same job

These do what Prometheus.ex does.

  1. Prometheus.erl Prometheus client for Erlang
  2. Amazon Managed Service for Prometheus Serverless, Prometheus-compatible monitoring service for container metrics
  3. Grafana Mimir Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus
  4. Telegraf Open source agent for collecting metrics from infrastructure, applications, and devices
  5. Prometheus Pushgateway Push acceptor for ephemeral and batch jobs
  6. VictoriaMetrics Fast, cost-effective and scalable time series database for monitoring, and long-term storage for Prometheus

Compare Prometheus.ex with the top 3