DropWizard Metrics 101

DropWizard Metrics 101

Photo courtesy of nathanmac87.

My most recent project at work has been to utilize DropWizard metrics to gather information about an application I built and send that data to Graphite to display in a realtime dashboard. As I normally do, I reviewed the documentation for Dropwizard Metrics, but as usual, there was a lot to be desired. Their example did not go into the nitty gritty of how to connect everything together. The internet was also silent on how to actually use DropWizard metrics.

So here is my tutorial on how I was able to get DropWizard metrics up and running in my application:

1. Maven Application? Update pom.xml

If you’ve got a Maven application, you’ll need to add metrics-core as a dependency. If you’re using some sort of special reporter like Graphite, you may need to add an additional dependency. This was what I had to add to my pom:

To read the rest of this article, click here! You'll want to anyway. There's code!

To view or add a comment, sign in

More articles by Lori Becker 🇺🇦

  • My Three Year Anniversary at Clutch

    It used to be true that people worked at one company for the rest of their lives. My father worked at one company from…

    1 Comment
  • A Change of Scenery

    I started a new job in the beginning of April. My first job as a software engineer, though, will always have a special…

  • An Ergonomic Keyboard That Works!

    So, how’s my new Kinesis FreeStyle2 keyboard? Is it as ergonomical as I need it to be relieve my RSI symptoms? Would it…

  • Time For A New Keyboard

    I’ve been thinking a lot about ergonomics lately. A few weeks ago, I thought I was dreaming as I looked down and saw…

  • Interactive SVGs in AngularJS

    My latest project has been utilizing my art degree (wait, what? An art degree is useful as a software engineer?…

  • I Graduated. Now What?

    It’s official. I’ve earned my Master’s in Computer and Information Technology.

    2 Comments
  • A Year And A Half Later

    I’ve started my last course before I graduate in May. Of course, in typical Lori-fashion, I decided to take one of the…

    3 Comments
  • We're Not Serious About Software Security

    Photo courtesy of www.perspecsys.

    2 Comments
  • Why I Type in Dvorak

    If you do a considerable amount of typing on a daily basis and have experienced stiffness or pain in the joints of your…

  • From Shakespeare To Java

    A little more than a ago, I was a high school English teacher. I walked around a classroom supervising activities to…

Explore content categories