Home

Awesome

elli_prometheus

Hex.pm Documentation Erlang Travis CI Coveralls BSD-3 License

Elli middleware for collecting stats via Prometheus.

Metrics

How Elli represents timings:

request_start
    headers_start
    ...headers receiving &  parsing...
    headers_end

    body_start
    ...body receiving & parsing...
    body_end

    user_start
    ...callback code...
    user_end

   send_start
   ...sending reply....
   send_end
request_end

How Elli represents sizes:

Each request has resp_headers key and, depending on response type, resp_body or file or chunks key.

Elli_prometheus exports the following metrics:

For failed requests:

Exporter metrics:

Dependencies

elli_prometheus requires Elli and Prometheus, but neither are included in this project. It has been tested and is known to work with {elli, "2.0.1"} and {prometheus, "3.1.1"}.