Telegraf Plugins used:
- 1 Bucket:
docker, 7d retention
- Labels: Telegraf Plugin Labels
- 1 Telegraf Configuration
- 1 Dashboard:
- 1 Variable:
- 4 Alerts: Container cpu, mem, disk, non-zero exit
- 1 Notification Endpoint: Http Post
- 1 Notification Rules: Crit Alert
If you have your InfluxDB credentials configured in the CLI, you can install this template with:
Docker is notable because it allows users to package and run applications inside a loosely isolated environment, commonly referred to as containers. This level of isolation — and the security features that come with it — allow users to run many containers at the same time on a given host, all without dealing with some of the underlying risk factors that normally come with it. Overall, the goal of a Docker deployment is to make the creation, deployment and even the delivery of an application to end users easier than ever before.
But to truly get the most out of your Docker deployment, proactive monitoring is very strongly recommended.
Why Docker monitoring?
Docker monitoring, also commonly referred to as container monitoring, is critical towards helping you guarantee the performance of any containerized applications you're working with.
By making Docker monitoring a priority, you can easily detect and resolve issues proactively — thus stopping them from becoming larger and more frustrating ones later, all while guaranteeing the terrific user experience your audience has come to depend on. This level of monitoring allows you to see the impact of your changes in real time, helping with both troubleshooting common problems and actually bringing your vision for your application to life — which is really the most important goal of all. Docker monitoring can also allow you to implement changes both frequently and safely, all while helping to optimize resource allocation as well.
This template uses the Docker Telegraf plugin to collect the metrics that are stored in InfluxDB, which are then visualized in the included dashboard.
Docker Monitoring Dashboard
How to use Docker Monitoring Template
Once your InfluxDB credentials have been properly configured in the CLI, you can install the Docker monitoring template using the Quick Install command. Once installed, the data for the dashboard will be populated by the included Telegraf configuration, which includes the relevant Docker Input. Note that you might need to customize the input configuration to better serve your needs, including by specifying a new input value. All of this will depend on how your organization is currently running Docker.
To find out more information about environmental variables within the Telegraf configuration, consult the following link.
Key Docker monitoring metrics to monitor
Some of the most important Docker monitoring metrics that you should proactively monitor include:
- Number of Docker containers
- Network TX traffic per container/sec
- CPU usage per container
- Memory usage % per container
- Memory usage per container
- Network RX traffic per container/sec