# Telemetry.Metrics

> Define metrics from Telemetry events in Elixir

Source: https://talira.ai/catalog/telemetry-metrics-zt2qt5c3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [devops / observability / instrumentation](https://talira.ai/categories/devops/observability/instrumentation)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [beam-telemetry](https://talira.ai/orgs/beam-telemetry.md)

Telemetry.Metrics (the telemetry_metrics package) gives Elixir applications one interface for defining metrics, such as counters, sums, last values, summaries and distributions, on top of [Telemetry](https://talira.ai/catalog/telemetry-cy02ntk0.md) events. You declare the metrics once, and a reporter publishes them to a backend: peep for Prometheus and StatsD, telemetry_metrics_statsd and telemetry_metrics_prometheus. It's copyright of the Erlang Ecosystem Foundation and Erlang Solutions, under Apache 2.0.

## Links

- GitHub: https://github.com/beam-telemetry/telemetry_metrics
- Docs: https://hexdocs.pm/telemetry_metrics/

## Problems it solves

- send metrics from my Elixir app to Prometheus without tying my code to one backend
- define counters and histograms on events my Phoenix app already emits
- switch my Elixir app's metrics from StatsD to Prometheus without rewriting them

## Features

- One interface for defining metrics from Telemetry events
- Reporters publish the same metric definitions to different backends
- Reporters for Prometheus and StatsD

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.45, adoption 0.48, momentum 0.17, community 0.60, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- 259 GitHub stars
- 31 contributors
- backed by beam-telemetry

## Related

- Works with [Telemetry](https://talira.ai/catalog/telemetry-cy02ntk0.md)

## Alternatives

- [Telemetry](https://talira.ai/catalog/telemetry-cy02ntk0.md): Dynamic dispatching library for metrics and instrumentation on the Erlang VM

## Sources

[^1]: https://github.com/beam-telemetry/telemetry_metrics/blob/main/LICENSE (checked 27 Nov 2026)
