Skip to content

Monitor your Docker containers using prometheus, cAdvisor , node-exporter and grafana

Notifications You must be signed in to change notification settings

jmb12686/prometheus-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Monitoring for Containerized Applications

Monitor your Docker containers using prometheus, cAdvisor , node-exporter and grafana

Prerequisites:

Setup and Deploy the monitoring stack

  1. Clone this repo:

    git clone https://github.com/jmb12686/prometheus-monitoring
    cd prometheus-monitoring
  2. Change line #5 in the alert.rules.yml file to correspond to a container name that you want to explicitly monitor and fire alerts for. Change name="YOUR-CONTAINER-NAME-HERE" to match your Docker container NAME.

  3. Start the stack with docker-compose:

    docker-compose up

    If launching from a Windows host, be sure to set the following Docker-Compose variable in powershell first:

    $Env:COMPOSE_CONVERT_WINDOWS_PATHS=1

Dashboards

Links to dashboards of each monitoring tool deployed in this stack

  • cAdvisor - Collects and exports resource usage and performance statistics of Docker containers.

  • node-exporter - Prometheus exporter for hardware and OS metrics

  • Prometheus - Prometheus monitoring system and time series database.

  • Grafana - monitoring, metric analytics, and dashboard visualization tool.