A light tool to supervise docker memory usage (save memory usage in sqlite then display it in html report).
Go to file
2021-02-13 17:05:42 +01:00
.gitignore Add export script 2021-02-13 17:05:42 +01:00
README.md Add export script 2021-02-13 17:05:42 +01:00
save_docker_stats.sh Add export script 2021-02-13 17:05:42 +01:00

Ultra-light docker monitor

This light tool permits:

  • to export docker container memory usage in a JSON file stats.json
  • display curves of the memory usages using the JSON file

The export and the display are two different parts. This allow to run the display in another machine.

Setup the stats export

To add it to the cron tab:

crontab -e

The add new line (to run the check once per hour)

*/10 * * * * /path.io/docker-stats-histo/save_docker_stats.sh >>/dev/null  2>&1

Note:

  • Normaly cron send task outputs (echo) via mail. As the MTA (Mail Transfert Agent), may not be set up, the crontab line redirect the outputs into /dev/null. Can also be a path to a log file.
  • No sudo is needed, crontab is called with current user.

Display stats

To be done...