Coder Social home page Coder Social logo

docker-stats-monitor's People

Contributors

anton31kah avatar scala-steward avatar shelajev avatar vasilmkd 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-stats-monitor's Issues

Configure memory use for the container

thanks for the excellent utility!
Currently neither the dockerfile nor the command line to run the container configure the memory use. Native image application will by default have the following configuration (in the environment with enough resources):
-Xmx -- max heap size -- not limited by default.
-Xmx -- young generation size -- 256M by default.

the consequence of that is that currently, by default, before the young gen is filled there's no GC happening. So the application (and the docker container) will consume at least 256M on a machine where docker has enough resources.

You can configure it on the application level by passing -Xmx and -Xmn to the native image, for example in the dockerfile

ENTRYPOINT [ "/server", "-Xmx64M" ]

or using docker options to limit memory available to the container, for example:

docker run -d --name monitor --memory=64m --memory-swap=64m -p "8080:8080" -v /var/run/docker.sock:/var/run/docker.sock vasilvasilev97/docker-stats-monitor

Then the container will work the same way, but the memory usage will stay at a fraction of 256M to which it grows now.

Before:
Screenshot 2020-05-21 at 16 28 15

After:
Screenshot 2020-05-21 at 23 34 49

Any plans to persist the stats over time?

Hello,

This project is really good alternative for lots of those paid options out there. however it's missing one critical feature which is data persistence. without it if the server or docker updates then the data is gone.

Is there any plans to support such use case in the future?

Thank you.

Invalid parsing of container id

Ok so it does seem to be reproducible. Here is what I did:

  1. Ran the monitor.
  2. Started another container which was running a Java process which was suspended waiting for the debugger to attach.
  3. Set a breakpoint to occur when an exception is thrown.
  4. Attached the debugger.
  5. Waited for the stats of that new container to be shown in the monitor.
  6. Allowed the process to continue and throw the exception which causes the process and the container to exit with a non-zero exit code.

Originally posted by @steinybot in #41 (comment)

Do not remove graph when container exits

Thanks for the app, it is really handy.

I was wondering if there is a way to prevent the graph from being removed when the container exits? I am using it to monitor a container which is getting killed by the OOM killer and it would be nice to keep the graph around after it has been killed.

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.