docker-mon
docker-mon copied to clipboard
tried to run it and ran into that issue:
TypeError: Cannot read property 'rx_bytes' of undefined
at NetworkIO.update (/usr/src/widgets/network.js:24:47)
at /usr/src/index.js:217:45
at Array.map (native)
at /usr/src/index.js:217:22
at Request.<anonymous> (/usr/src/utils/index.js:49:14)
at emitOne (events.js:77:13)
at Request.emit (events.js:166:7)
at IncomingMessage.<anonymous> (/usr/src/node_modules/request/request.js:1184:12)
at emitOne (events.js:77:13)
at IncomingMessage.emit (events.js:166:7)
+1
Same for me+
+1
For me also. +1
Same here:
$ docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Yep, +1
git commit 75f4f25adb0a94080495c29a4418a6550bf365ae
Client: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Thu Feb 25 09:29:05 2016 OS/Arch: linux/amd64
Server: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Thu Feb 25 09:29:05 2016 OS/Arch: linux/amd64
+1
+1
Client: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:54:52 2016 OS/Arch: linux/amd64
Server: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:54:52 2016 OS/Arch: linux/amd64
I managed to fix that locally changing statItem.network.rx_bytes
here to statItem.networks.eth0.rx_bytes
(same for following lines)
All I did was add console.log(statItem)
before the breaking line, if networks.eth0
do not work for you try that.