docker-container-stats icon indicating copy to clipboard operation
docker-container-stats copied to clipboard

Randomly retrieves empty values

Open rdlmda opened this issue 5 years ago • 4 comments

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

rdlmda avatar Nov 29 '19 20:11 rdlmda

Here's an example. The container is up and running, docker stats shows usage, but the graphs are empty, save for one entry:

Captura de tela de 2019-11-29 18-09-08

rdlmda avatar Nov 29 '19 21:11 rdlmda

@rdlmda It's been a while, but if you want, you could test if it works with the latest image.

virtualzone avatar Apr 26 '20 11:04 virtualzone

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

rdlmda avatar May 05 '20 12:05 rdlmda

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'

adaragaopt avatar May 14 '21 11:05 adaragaopt