docker-exporter

command module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

docker-exporter

https://hub.docker.com/r/blackprism/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']

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址