Integrating with Prometheus & Grafana
Set up Prometheus to scrape metrics from Kafka and Spring Boot apps, then visualize them using Grafana dashboards.
Why Monitor with P&G?
In modern systems, understanding what your applications and infrastructure are doing is critical. This is where monitoring comes in!
We'll explore how Prometheus and Grafana form a powerful duo for observing your Spring Boot Kafka applications and the Kafka cluster itself.
Introducing Prometheus
Prometheus is an open-source monitoring system that collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts.
- It uses a pull model: Prometheus scrapes (pulls) metrics from your services.
- It stores data as time-series data, making it excellent for tracking changes over time.
All lessons in this course
- Kafka Metrics (JMX) and Health Checks
- Integrating with Prometheus & Grafana
- Distributed Tracing with Sleuth/Zipkin
- Monitoring Consumer Lag and Setting Alerts