From the course: Learning Quarkus

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Metrics

Metrics

From the course: Learning Quarkus

Start my 1-month free trial

Metrics

= [Instructor] One of the most crucial components for observability, is actually metrics. I use metrics almost exclusively to trigger pages because of the detail, speed and fine grade support you can drive through metrics measurements. Let's take a look at using micrometer in corcus. So let's go back into our room service and open up a POM file, and we're going to add a couple of dependencies. The first one is quarkus micrometer, and the next one, is micrometer registry Prometheus from IOTA micrometer. Now there's more than one metrics registry but that's the one that we're going to use. cause that's the one that you most often use with Kubernetes when dealing with metrics. So now that we have those dependencies in place, let's go to source main Java. Let's go to our room resource. And we're going to inject into our class, a meter registry. And what we're going to do is we're going to add a simple timing…

Contents