A web interface for viewing historical and current statistics per docker container (cpu, mem, net i/o, block i/o) - in a docker container.
 
 
 
 
Go to file
Heiner Peuser 024c429579 Updated base image 2020-11-28 08:11:42 +01:00
hooks Added multi-arch Alpine Dockerfiles 2020-04-19 18:01:30 +02:00
html automatic chart refresh every 3s. without need to refresh page 2020-08-25 08:47:41 +03:00
img Added screenshots 2016-02-24 00:50:53 +01:00
.gitignore Fixed compatibility with current Docker versions 2020-04-23 20:35:55 +02:00
Dockerfile Updated base image 2020-11-28 08:11:42 +01:00
Dockerfile.arm32v6 Updated base image 2020-11-28 08:11:42 +01:00
Dockerfile.arm32v7 Updated base image 2020-11-28 08:11:42 +01:00
Dockerfile.arm64v8 Updated base image 2020-11-28 08:11:42 +01:00
README.md Updated base image 2020-11-28 08:11:42 +01:00
httpd.js fix CPU chart axis name 2020-08-25 09:11:44 +03:00
multi-arch-manifest.yaml Added multi-arch Alpine Dockerfiles 2020-04-19 18:01:30 +02:00
stats.js control stats update interval with env.variable 2020-08-25 08:47:00 +03:00
supervisord.conf Added multi-arch Alpine Dockerfiles 2020-04-19 18:01:30 +02:00

README.md

Docker Container Stats

A web interface for viewing historical and current statistics per docker container (cpu, mem, net i/o, block i/o) - in a docker container.

Pull and run daemonized:

docker pull virtualzone/docker-container-stats
docker run \
        -d \
        -p 8080:8080 \
        --volume=/var/run/docker.sock:/var/run/docker.sock:ro \
        --volume=/home/docker/storage/stats/db:/opt/docker-stats/db \
        --name stats \
        -e STATS_UPDATE_INTERVAL=10 \
        virtualzone/docker-container-stats

Docker-Compose:

version: '3.6'
services:
  stats:
    image: virtualzone/docker-container-stats
    container_name: 'stats'
    ports:
      - '8080:8080'
    environment:
      STATS_UPDATE_INTERVAL: 10
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
      - '/home/docker/storage/stats/db:/opt/docker-stats/db'

To view your stats, open a web browser and visit http://localhost:8080 (replace localhost with your docker host's hostname or ip address).

Mounting the volume /var/run/docker.sock (read-only) is required so that the docker container can retrieve the statistics for the containers.

Mounting the volume /opt/docker-stats/db is optional. You can use it if you want to persist the SQLite database.

We strongly recommend not making your stats available online. To password protect your statistics, you can use a frontend web server/proxy (Apache, nginx, ...).

Screenshots

All containers' memory usage

All containers' inbound network traffic

Selected container's latest statistics