Monitoring Applications in Kubernetes
In this section, we will explore how to monitor infrastructures and applications by using the most commonly used tools in Kubernetes. We will also discover how we can expose our custom metrics from these applications and set up alert notifications so that we will have a fully capable monitoring system.
We will start with Prometheus as a tool for collecting metrics from a cluster and Alertmanager as an alert notifier. Then, we'll continue with Grafana as the visualizer tool for the metrics obtained by Prometheus. Finally, we'll complete the system by configuring a Slack channel to receive these alert notifications.
Prometheus
Prometheus is an open source monitoring and alerting system. It periodically collects real-time data from the configured applications and stores them in a database in timely order, also called time series data. Prometheus has a querying language called Prometheus Query Language (PromQL), which enables the...