Spring Boot | Prometheus | Grafana

Running Prometheus and Grafana to monitor a Spring Boot API application

Step-by-step guide on how to run Prometheus and Grafana locally, using Docker Compose, to monitor Movie API metrics

Ivan Franchin
Javarevisited
Published in
6 min readOct 16, 2023

--

Photo by Luke Chesser on Unsplash

In this article, we will explain how to run Prometheus and Grafana locally in our machines using Docker Compose. We will use them to monitor a Spring Boot API called Movie API.

Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability. It collects metrics from targets by scraping HTTP endpoints and stores them in a time-series database, allowing for flexible querying and visualization.

Grafana is an open-source analytics and monitoring platform used to visualize and analyze data from various sources, including Prometheus. It provides customizable dashboards, graphs, and alerts to monitor and analyze metrics and logs in real-time.

You can find the complete code and implementation of the Movie API in the article linked below.

--

--

Ivan Franchin
Javarevisited

Lead Software Developer with BS and MS in Computer Science. Writing about Java, Spring, software development in general, and emerging technologies.