A Simple Erlang Application, with Prometheus
The code is identical to the code in A Simple Erlang Application, with the following modifications:
- new dependency on an Erlang client for Prometheus.io, a monitoring system and time series database,
- new handler to log metrics and expose an endpoint for Prometheus, and
- new child spec to call elli_middleware and stack the prometheus.io handler before the original handler.
You can find the code for this blog entry here.