Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m mad

import issue for io.prometheus.client.exporter.MetricsServerlet in Developing Ops Friendly Microservices.

It errors out at launch in both the Metrics and Finalising the chassis code sets. Looks like the build.gradle file isn't up to date and we are getting conflicts. I've tried to get it to work with no joy.

This has happened a few times throughout this course for instance you can no longer use the most recent version of log stash as that is 2 and the demo must be in 1.5 but this is unclear until you dig around in the errors.

REALLY difficult course to follow, not built to really follow along and screen movement is often way too fast.
1 person has
this problem
+1
Reply
  • I’m frustrated
    Ok I've kicked the can down the road a little.

    Had to replace:
    compile 'io.prometheus:simpleclient_hotspot:+'

    with:

    compile 'io.prometheus:client:0.0.13'
    compile 'io.prometheus:simpleclient_hotspot:0.0.13'

    Id originally added :client:+ but that failed, then added client:0.0.13, still no joy, once moving hotspot back to 0.0.13 (it was pulling 0.0.14) then the error is gone.

    Now looks like it just need the launch config set up correctly in intellij. This is another annoying part of this course as we have had the required details pointed out in a few videos but we need to guess the correct settings in others, often it is just the same as the previous module but frustrating no less.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Yep took the same args as previous step...

    if you are here with the same problem also don't forget you need to run vagrant at the beginning of the Monitoring phase again to bring that service online.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Hi this is Rick (the author). Sorry for the issues. It was a poor decision on my part to not lock the dependency to a specific version for Prometheus. I'll fix the build script tonight
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited

  • I just checked the Gradle cache on the laptop that I wrote the code on, and the version of Prometheus client is 0.0.11. You only need to specify simpleclient_hotspot with this version. Again, apologies. I am also trying to reproduce your issue with prometheus being unavailable on the vagrant machine. I will get back to you when I identify the problem. Unfortunately, working files are not submitted via source control, so everything has to be manually copied around in dropbox. I will make sure that 0410's vagrant file work.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited