To begin monitoring our Docker deployments, we must first set up an endpoint to send our monitored values to. Prometheus is a popular monitoring stack for collecting various metrics. It provides a simple API for integration with various tools. Most cloud-native and container-related tools already support integration with Prometheus. Later, we will configure Prometheus to collect metrics from our Docker infrastructure.
In this section, we will set up the following components to build our monitoring infrastructure based on Prometheus:
- Prometheus clients/exporters: These are basically any kind of component that uses Prometheus's exposition format that exposes metrics to be collected by Prometheus. We will activate Prometheus's integration with Docker Engine to monitor Docker-related metrics in our cluster. We will also deploy cAdvisor...