In this chapter, we have learned how to use Prometheus and Grafana to collect and monitor alerts on performance metrics.Â
We saw that, for collecting performance metrics, we can use Prometheus in a Kubernetes environment. We then learned how Prometheus can automatically collect metrics from a pod when a few Prometheus annotations are added to the pod's definition. In order to produce metrics in our microservices, we used Micrometer.
Then, we saw how we can monitor the collected metrics using Grafana dashboards. Both of the dashboards that come with Kiali, as well as the dashboards that were shared by the Grafana community. We also learned how to develop our own dashboards where we used metrics from Resilience4j to monitor the usage of its circuit breaker and retry mechanisms.
Finally, we learned how to define alerts on metrics in Grafana and how to...