Skip to content

blackprism/docker-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-exporter

docker-exporter is a Prometheus exporter that exposes detailed metrics about running Docker containers. It provides information on CPU usage, memory usage, network usage, I/O, volume size for each container, as well as for child processes.

Features

  • Detailed per-container metrics:
    • CPU usage (user, kernel)
    • Memory usage
    • Network usage (bytes received/sent)
    • I/O usage (bytes read/written)
    • Optional volume metrics
    • Optional child process metrics
  • Flexible configuration:
    • Ability to filter monitored containers (Docker Compose only)

Installation and Usage

Prerequisites

  • Docker installed and running
  • Prometheus installed and configured

Installation

  1. Pull the Docker image:

    docker pull blackprism/docker-exporter
  2. Run the docker-exporter container with configuration flags:

     docker run -d \
        -p 9100:9100 \
        -v /var/lib/docker:/var/lib/docker \
        -v /var/run/docker.sock:/var/run/docker.sock \
        blackprism/docker-exporter \
        --port=9100 \
        --rootfs=/ \
        --volume=true

Prometheus Configuration

Add the docker-exporter target to your Prometheus configuration (prometheus.yml):

scrape_configs:
  - job_name: 'docker'
    static_configs:
      - targets: ['<docker-exporter-ip>:9100']

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published