A Simple Erlang Application, with Prometheus


By Erlang Central | Published: February 1, 2017



The Code

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.

 

http://markbucciarelli.com/2016-11-23_a_simple_erlang_application_with_prometheus.html



Follow Erlang Central:


Have an Erlang Question?

Reach out to the Erlang community