From the course: Advanced Spring: Spring Boot Actuator

Unlock the full course today

Join today to access over 25,000 courses taught by industry experts.

Micrometer Prometheus registry

Micrometer Prometheus registry

- Micrometer's job is to expose our applications metrics to external monitoring systems. While Prometheus job, is to scrape and store the metrics exposed by micrometer. However, we need a way to get the metrics exposed from our application into Prometheus. Luckily for us, Micrometer consists of a set of modules containing implementation for several monitoring systems. All we need to do is add the micrometer registered dependency into our pumped XML file, by doing so we'll gain an additional endpoint for Prometheus @twitter/Prometheus. Let's dive right back into intelligence and make this happen. First thing I need to do is bring it into the dependency for Micrometer Prometheus Registry. So I'm going to type dependency. The group ID here would be io.micrometer. The artifact ID is micrometer-registry-Prometheus. Okay, give it a second to load. Once the pump files loaded successfully, we're going to reboot the…

Contents