stefanluptak
Using PrometheusPhoenix with Phoenix 1.5
Hi all,
I am trying to setup PrometheusPhoenix with Phoenix 1.5.
The library says in the documentation, to use instrumenters: [ ... ] in the Endpoint config in config.exs file, but after doing that Phoenix is complaining :instrumenters configuration for MyApp.Endpoint is deprecated and has no effect.
I assume I should somehow attach the handler to the Telemetry, but I don’t know how. Any idea how to solve this will be appreciated.
Thanks a lot.
Most Liked
hauleth
There is TelemetryMetricsPrometheus library, unfortunately it is completely separate from prometheus library, which mean that these two do not get along very well.
hauleth
It seems, that right now, there are some events but these aren’t documented (at least I cannot find them, and Plug.Telemetry will not be fired for sockets). There is some work on integrating Telemetry directly with Cowboy, which should solve your problems on higher level.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex










