''
'<docker top conatiner (id)>'
''
this provides the current statistics of all the containers running
''
this checks the events that occurs in the past on your running containers
<docker events --since 1h15m --filter container=(id)> can also be used to provide activites in the last hour
ctop is a real-time metric tool developed in Golang for monitoring Docker containers. It provides valuable insights into container metrics. To use ctop, run the following command:
docker run --rm -ti --name=ctop --volume /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop:latest
Lazy Docker is another terminal tool for Docker and Docker Compose, also written in Golang. It offers container monitoring capabilities on both Windows and macOS. To install Lazy Docker, execute the following command:
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v C:\Users\USER\Desktop\docker\monitoring\mount:/.config/jesseduffield/lazydocker lazyteam/lazydocker
cAdvisor is a container monitoring tool that collects metrics and logs. However, it lacks advanced visualization features. It can send collected data to various destinations like Prometheus, StatD, Elasticsearch, Kafka, InfluxDB, and fluentD.
Prometheus is a powerful tool for data collection and time-series storage. It gathers and scrapes data while utilizing promQL for querying your data.
Node Exporter provides metrics from containers at an endpoint.
Grafana is a versatile tool capable of collecting data from various sources, such as Elastic search, DynamoDB, and AWS. It offers a user-friendly GUI for querying and visualizing data, simplifying the evaluation of logs, data, and metrics in your containers.
Using these open-source tools, monitoring your Docker containers becomes more efficient and streamlined, enabling you to gain valuable insights into their performance.