virtualzone / docker-container-stats Goto Github PK
View Code? Open in Web Editor NEWMonitor your docker containers with this web interface.
Monitor your docker containers with this web interface.
Is it possible to have entities (sensors) created for home assistant to use for visual presentation?
when i open the page and then set it to "day" or anything other than "hour", my browsers memory starts spiking in 200mb increments until after about a minute it reaches its limit and the site just crashes.
This shows statistics for non-running containers. Is there any way to filter them out?
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
hour/day/week/month API calls return same result (hourly stats).
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
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.
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.sock
socket 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
I am using in docker in a Synology NAS DS218+ and I noticed following problems:
IT´s possible to collect stats from a remote docker?
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.
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/
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
Hi,
Please add a favicon, for example this one:
https://www.docker.com/wp-content/uploads/2023/04/cropped-Docker-favicon-32x32.png
Thanks,
Feriman
I get following error, when I try to execute it on Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-51-generic x86_64).
Create a cumulative stat for total usage in each type
Could be labeled Host or Total. Etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.