README.md
# PrometheusPhoenix [](https://hex.pm/packages/prometheus_phoenix) [](https://travis-ci.org/deadtrickster/prometheus-phoenix)
Phoenix integeration for [Prometheus.erl](https://github.com/deadtrickster/prometheus.erl).
## Metrics
- `phoenix_controller_call_duration_microseconds` - Whole controller pipeline execution time.
## Configuration
This integartion is configured via <InstrumenterName> `:prometheus` app env key. Please see `Prometheus.PhoenixInstrumenter` module documentation for more information.
## Documentation
Please find documentation on [hexdocs](https://hexdocs.pm/prometheus_phoenix/index.html).
## Installation
[Available in Hex](https://hex.pm/packages/prometheus_phoenix/), the package can be installed as:
1. Add `prometheus_phoenix` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:prometheus_phoenix, "~> 0.0.4"}]
end
```
2. Ensure `prometheus_phoenix` is started before your application:
```elixir
def application do
[applications: [:prometheus_phoenix]]
end
```