Skip to content

W-Games/prometheus-phoenix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus.io Phoenix Instrumenter

Hex.pm Hex.pm Build Status Documentation

Phoenix integeration for Prometheus.ex.

  • IRC: #elixir-lang on Freenode;
  • Slack: #prometheus channel - Browser or App(slack://elixir-lang.slack.com/messages/prometheus).

Metrics

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>.

Live endpoint

https://slackinex.herokuapp.com/metrics

Configuration

This integartion is configured via :prometheus app env key. Please see Prometheus.PhoenixInstrumenter module documentation for more information.

Integrations / Collectors / Instrumenters

Installation

Available in Hex, the package can be installed as:

  1. Add prometheus_phoenix to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:prometheus_phoenix, "~> 1.2.0"}]
end
```
  1. Ensure prometheus_phoenix is started before your application:
```elixir
def application do
  [applications: [:prometheus_phoenix]]
end
```

About

Prometheus.io Phoenix instrumenter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 91.5%
  • Shell 8.4%
  • HTML 0.1%