Define metrics from Telemetry events in Elixir
open sourceApache-2.0free
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 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.
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
Alternatives
The same job
These do what Telemetry.Metrics does.
- Telemetry Dynamic dispatching library for metrics and instrumentation on the Erlang VM