Monitoring your application’s metrics
Analyzing your application’s metrics is key to understanding how you are serving your users or other applications. In this section, we will learn how to monitor our applications using Prometheus, a monitoring solution that fits very well in the Kubernetes ecosystem.
Prometheus is an open source monitoring solution that’s been hosted by the Cloud Native Computing Foundation (CNCF) since 2016. It is used to collect, store, and represent metrics and alert users using thresholds. It can be integrated into any infrastructure, although it is known to work great with Kubernetes. It comes included within some Kubernetes platform deployments and that’s why it is considered standard within the Kubernetes community.
Prometheus includes a data model that is easy to query, using its own Prometheus query language (PromQL), which stores metrics recorded over time from different sources identified by key-value pairs. By default...