# Prometheus.ex

> Elixir client for Prometheus metrics

Source: https://talira.ai/catalog/prometheus-ex-nv04jm5h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [devops / observability / metrics](https://talira.ai/categories/devops/observability/metrics), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [prometheus-erl](https://talira.ai/orgs/prometheus-erl.md)

Prometheus.ex is an [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md) client for [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md), 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.

## Links

- GitHub: https://github.com/prometheus-erl/prometheus.ex
- Docs: https://hexdocs.pm/prometheus_ex

## 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

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.53, momentum 0.19, community 0.53, backing 0.30, extensibility 0.00.

- latest release v5.1.0 9 months ago
- 425 GitHub stars
- 20 contributors
- backed by prometheus-erl

Warnings:

- last commit 9 months ago

## Related

- Works with [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md)

## Alternatives

- [Prometheus.erl](https://talira.ai/catalog/prometheus-erl-jqrgrgqd.md): Prometheus client for Erlang
- [Amazon Managed Service for Prometheus](https://talira.ai/catalog/amazon-managed-service-for-prometheus-6qk4t9k9.md): Serverless, Prometheus-compatible monitoring service for container metrics
- [Grafana Mimir](https://talira.ai/catalog/grafana-mimir-z0v9m2c8.md): Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus
- [Telegraf](https://talira.ai/catalog/telegraf-4gbx407h.md): Open source agent for collecting metrics from infrastructure, applications, and devices
- [Prometheus Pushgateway](https://talira.ai/catalog/prometheus-pushgateway-7q76cges.md): Push acceptor for ephemeral and batch jobs
- [VictoriaMetrics](https://talira.ai/catalog/victoriametrics-96s76n81.md): Fast, cost-effective and scalable time series database for monitoring, and long-term storage for Prometheus

## Sources

[^1]: https://github.com/prometheus-erl/prometheus.ex/blob/master/LICENSE (checked 29 Nov 2026)
