virtualzone / docker-container-stats

Monitor your docker containers with this web interface.
148 stars 22 forks source link

Randomly retrieves empty values #3

Open rdlmda opened 4 years ago

rdlmda commented 4 years ago

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 commented 4 years ago

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

virtualzone commented 4 years ago

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

rdlmda commented 4 years ago

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

adaragaopt commented 3 years ago

Same here with this configuration on a Raspberry 3 B+:

version: '3.6' services: stats: image: virtualzone/docker-container-stats container_name: 'stats' ports: