Phoenix integration for Prometheus.ex.
Metrics implemented for the following built-in events:
phoenix_controller_call
phoenix_controller_call_duration_<duration_unit>
;phoenix_controller_render
phoenix_controller_render_duration_<duration_unit>
;phoenix_channel_join
phoenix_channel_join_duration_<duration_unit>
;phoenix_channel_receive
phoenix_channel_receive_duration_<duration_unit>
.https://slackinex.herokuapp.com/metrics
This integration is configured via :prometheus
app env key. Please see Prometheus.PhoenixInstrumenter
module documentation for more information.
Available in Hex, the package can be installed as:
Add prometheus_phoenix
to your list of dependencies in mix.exs
:
def deps do
[{:prometheus_phoenix, "~> 1.3.0"}]
end
Ensure prometheus_phoenix
is started before your application:
def application do
[applications: [:prometheus_phoenix]]
end