Module elli_prometheus

February 16, 2020 ยท View on GitHub

Elli middleware for collecting stats via Prometheus.

Copyright (c) 2016-2020 elli-lib team

Version: 0.2.0

Behaviours: elli_handler.

Authors: Eric Bailey, Ilya Khaprov.

References* Prometheus

Function Index

handle/2Handle requests to /metrics and ignore all others.
handle_event/3

Function Details

handle/2

handle(Req, Config) -> any()

Handle requests to /metrics and ignore all others.

To do
* Describe format.

  • Add links to Prometheus and Prometheus.erl docs.

handle_event/3

handle_event(Event, Args, Config) -> any()