docker-container-stats
docker-container-stats copied to clipboard
Randomly retrieves empty values
For some reason, only a few of the stats datapoints will have data. The vast majority is empty.
Here's my docker-compose file:
version: '3.6'
services:
stats:
image: weweave/docker-container-stats
container_name: 'stats'
labels:
- 'traefik.docker.network=web'
- 'traefik.enable=true'
- 'traefik.basic.frontend.rule=[REDACTED]'
- 'traefik.basic.port=8080'
- 'traefik.basic.protocol=http'
- 'traefik.frontend.auth.basic.users=[REDACTED]'
volumes:
- '/var/lib/docker/:/var/lib/docker:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- './data:/opt/docker-stats/db'
networks:
- web
networks:
web:
external: true
Here's an example. The container is up and running, docker stats shows usage, but the graphs are empty, save for one entry:

@rdlmda It's been a while, but if you want, you could test if it works with the latest image.
It's populating all values except for "memory", which always sits at zero bytes.
I've tested on two servers and my local PC: Debian 10, Debian 9, Fedora 30 Docker 19.03.6 and 19.03.8
Same here with this configuration on a Raspberry 3 B+:
version: '3.6' services: stats: image: virtualzone/docker-container-stats container_name: 'stats' ports: - '7080:8080' environment: STATS_UPDATE_INTERVAL: 10 volumes: - '/var/run/docker.sock:/var/run/docker.sock:ro'