Own your software by using Micrometer and Spring Boot / Micronaut! [LIVE CODING]

by | Sep 22, 2021 | Voxxed Days Romania 2021

Hi! My name is Ko Turk, working as a Senior Java Developer for Blue4IT and currently on an assignment at Rabobank. Besides working on creating bad ass software, I’d like to speak at international conferences to share and to learn! You can find me regularly at the UtrechtJUG.

Imagine that you’re part of a (car) race team. You’re the one behind the screens to control the race and make some tough decisions (like changing the team’s strategy).

But you don’t have the insights (or metrics) about your car, opponents, or even the weather. Sounds painful right? But why are we making this mistake when building our software? Why don’t we own our software by adding those insights (or metrics) by default?

SLFf4J logging is one side of the story, but we also need to know our application health. That’s where Micrometer comes in! It’s a library that you can use to define your own custom metrics, like: 
– timers (to check the performance of your microservices) 
– counters (to check how many times a certain event is occurring) 
– gauges (to check the current value of a variable) 
– and many more 

These metrics are exposed by REST endpoints (JSON) together with Spring Boot actuator, which can be saved into a database like Prometheus or Graphite. And to visualize the data you can use a tool like Grafana. Pretty interesting right?

In the demo (live coding!) I will show you how to create such applications using Micrometer, and Spring Boot. Ready to win this race with me? Jump in!