derpycoder

derpycoder

I couldn't make PromEx library work

I am tired after, fighting for 2 hours, trying to make Prom_Ex library work with Phoenix 1.6.

I was learning Realtime Phoenix book, and coming across the chapter about how important observability & metrics, I decided to go for the pull based approach that Prometheus offers.

I came across a great talk by Alex Koutmos:


But, after bashing my head, trying to make it work with latest stable release of Phoenix, I gave up.

It’s just not yielding, it’s versioning requirement is too stringent.


Resolving Hex dependencies...
#Incompatibility<#Term<your app>, cause: {:conflict, #Incompatibility<#Term<prom_ex >= 1.5.0>, cause: {:conflict, #Incompatibility<#Term<the lock>, #Term<prom_ex >= 1.5.0>, cause: {:conflict, #Incompatibility<#Term<the lock>, #Term<not telemetry 1.1.0 (optional)>, cause: :dependency>, #Incompatibility<#Term<prom_ex >= 1.5.0>, #Term<not telemetry ~> 1.0.0>, cause: :dependency>}>, #Incompatibility<#Term<your app>, #Term<not the lock>, cause: :dependency>}>, #Incompatibility<#Term<your app>, #Term<not prom_ex ~> 1.7.1>, cause: :dependency>}>
Resolution completed in 0.391s
Because "the lock" specifies telemetry 1.1.0 and prom_ex >= 1.5.0 depends on telemetry ~> 1.0.0, the lock is incompatible with prom_ex >= 1.5.0.
And because your app depends on the lock, prom_ex >= 1.5.0 is forbidden.
So, because your app depends on prom_ex ~> 1.7.1, version solving failed.
** (Mix) Hex dependency resolution failed

Marked As Solved

trisolaran

trisolaran

Until a new prom_ex version with the updated dependencies is released, you might have to explicitly override the telemetry dependency in your mix.exs:

[
 ...
 {:telemetry, "~> 1.0", override: true},
]

Also Liked

adamu

adamu

There is an open issue about this.

https://github.com/akoutmos/prom_ex/issues/164

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement