Giter Site home page Giter Site logo

virtualzone / docker-container-stats Goto Github PK

View Code? Open in Web Editor NEW
137.0 137.0 19.0 413 KB

Monitor your docker containers with this web interface.

CSS 2.85% HTML 24.08% JavaScript 68.48% Dockerfile 4.59%
container-monitoring container-stats containers docker docker-stats monitoring

docker-container-stats's People

Contributors

chdanielmueller avatar christianamannkt avatar doubleangels avatar matze19999 avatar virtualzone avatar zeehio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-container-stats's Issues

[No way urgent feature request] Deep links for specific containers

Hi,

I really like your docker-container-stats image. It worked without problems out-of-the-box. Exactly what I was looking for - thank you for doing this great job and sharing as open source.

A cool additional feature (for me) would be a possibility to deep-link to certain containers.
For example if I like to see the data for container "foo" it would be cool if I can add this to the url as path or via # like in the following examples: stats.example.com/foo or stats.example.com#foo

This would be a nice feature for me but there is no strong need from my side.

Feel free to close this issue if you don't like it :-)

Best regards
Martin

app is glitching and data is flickering

I am using in docker in a Synology NAS DS218+ and I noticed following problems:

  1. When I press to show daily or weekly statistics, the web interface is showing few seconds the correct data then it shows back the hour statistics and so on. The same, if I select an application it shows the app data for daily, after few seconds it shows back the statistics for all apps.
  2. The web interface is glitching (probably because of slow processor of my NAS)
    Ideas:
  3. There is no back (or home button) after selecting one app and go back on first screen to select another app.
  4. Maybe you can set dynamic scales for some apps (if they use low memory, network, or processor, you can not really see the corresponding figures from graphs.

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

Cumulative stats

Create a cumulative stat for total usage in each type
Could be labeled Host or Total. Etc.

Update docker schema format

When I docker pull docker pull weweave/docker-container-stats I get this message:

Image docker.io/weweave/docker-container-stats:latest uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/

Question: Is the /var/lib/docker mount needed?

Hi there, I'm trying to pack your project into an Home Assistant Addon to monitor the running containers on my smart home system.

The given api to develop vor it only grants me access to the docker.socksocket and not the /var/lib/docker folder. Is your software also working without it and just not showing some stats? Or failing completely?

FYI the addon is currently located here:Poeschl/Hassio-Addons#139

Project license?

Hi @virtualzone
first of all thanks for the nice work!

Looking from the issue list and commits, I assume the project is no longer maintained, or at least not active anymore.

I'd like to fork it (for personal use and possibly to share it freely), but I see it is missing a FOSS license and I want to be sure that you are not against it, so here I am.

Could you add a license or give explicit consent?

TIA

Mem usage stays 0

The mem usage stays zero. I am running the container on docker RPI. The reason why is that de unit are give by docker stats is KiB, MiB, GiB etc. This why the mem usage stil stays zero. See
dockerstats
stats_gui
I have a temporaly fix so the mem usage is visible. If you can see on the gui of the stats.

Not showing correct values for stats

For some reason, the statistics are "flat-lining" in the GUI even though docker stats shows the correct values. For example, my container "tatest" has 4GB of RAM allocated:

CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT   MEM %     NET I/O           BLOCK I/O   PIDS
85e0510920f7   stats     1.99%     79.06MiB / 256MiB   30.88%    6.34MB / 18.5MB   0B / 0B     23  
b0c7fce89260   latest    0.28%     1.34GiB / 3.84GiB   34.90%    914MB / 1.01GB    0B / 0B     34  
cf4fc69392eb   jaeger    0.08%     12.55MiB / 512MiB   2.45%     1.73kB / 0B       0B / 0B     10  
8dea7a0de998   383       0.72%     106.8MiB / 512MiB   20.87%    12MB / 12MB       0B / 0B     92  

This has also been confirmed from the CLI inside the container:

Mem: 3295556K used, 730512K free, 393644K shrd, 152664K buff, 758780K cached
CPU:   0% usr   0% sys   0% nic  98% idle   0% io   0% irq   0% sirq
Load average: 0.02 0.23 0.53 2/896 284
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
    1     0 root     S    3166m  80%   1   0% arangod --server.authentication=true --config /tmp/arangod.conf
  277     0 root     S     1644   0%   2   0% /bin/sh
  284   277 root     R     1580   0%   3   0% top

However, the stats GUI under load shows the values incorrectly hitting a ceiling at 1GB even though this is not reflected by direct docker stats output.
MicrosoftTeams-image

Port forwarding isn't happening from server to local system.

I'm running your container on my company's server and collected stats

CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS                  PORTS                    NAMES
4b1084619ef2        virtualzone/docker-container-stats   "/usr/bin/supervisord"   4 days ago          Up 4 days               0.0.0.0:8080->8080/tcp   stats

In order to watch it on my local computer, I did remote port forwarding.

ssh <ssh server> -R [SSH Server IP to Bind To]:[SSH Server Port to Bind To]:[Target Destination]:[Target Port]

Eg.

ssh user_name@server_name.company.org -R 0.0.0.0:8080:127.0.0.1:80

I was able to successfully ssh into the server(REDHAT)
Later, using this, I checked the port-forwarding. I got affirmation:

2020/08/14 19:40:55 socat[11927] E bind(5, {AF=2 0.0.0.0:80}, 16): Address already in use

But still, on my local system browser, I can access the web-interface(https://127.0.0.1:80/), browser say's This site can’t be reached127.0.0.1 refused to connect.

  • do you know what's going on wrong here?
  • Is there a way to transfer the stored stats locally and run the setup locally to visualize the historical stats?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.