Skip to content

Enscend/BasicDockerMonitor

Repository files navigation

Initial Setup

Note: ChatGPT did most of the work on this one...

  1. Start it up using Docker Compose via the _runMonitor.bat or _runMonitor.sh scripts (depending on your system type), because we need to set up as environment variable for the system root.
  • assumes you already have Docker properly set up on your system
  • docker-commpose.yml is set up to restart:always so it will automatically come back up when you restart the computer

Windows

C:\your\repo\folder\> _runMonitor

Linux

user@system:~/your/repo/folder$ sudo chmod +x ./_runMonitor.sh
user@system:~/your/repo/folder$ ./_runMonitor.sh
  1. Navigate to: https://localhost:3000 to load the Grafana UI
  2. Change the default password for Grafana
  3. From the Data sources link in the left-side nav panel, click Add new data source to add Prometheus as a data source
  • Prometheus server URL *: http://prometheus:9090
  • Prometheus type: Prometheus
  • Prometheus version: > 2.50.x
  • Click Save & Test
  1. From the Dashboards link in the left-side nav panel, click New then Import
  • Enter '893' (one that ChatGPT told me about) for Docker monitoring, then click Load
  • Select the Prometheus data source that you created above, then click Import
  1. From the Dashboards link in the left-side nav panel, select the Docker and system monitoring dashboard to view your stats

About

Basic Docker monitoring setup using public Docker Compose and Docker images from Grafana, Prometheus, and CAdvisor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors