Docker/System Stats: Difference between revisions
From charlesreid1
(Created page with "==netdata== Standalone netdata docker container: https://hub.docker.com/r/firehol/netdata/~/dockerfile/ (Note: this is the standard netdata repo https://github.com/firehol/n...") |
No edit summary |
||
| Line 46: | Line 46: | ||
graphiteapp/graphite-statsd | graphiteapp/graphite-statsd | ||
</pre> | </pre> | ||
==mongodb== | |||
Link: https://charlesreid1.com:3000/docker/d-mongodb | |||
mongodb is a nosql database and it runs on port 27017. The volume is run using the -v flag to create a mapping from the database's data directory to a folder on the host so that the data is persistent after the container goes away. | |||
we have successfully set up a mongodb docker container to use a persistent data directory in <code>/opt/mongodb</code> and to start up on boot. | |||
==mongo express== | |||
Link: https://charlesreid1.com:3000/docker/d-mongoexpress | |||
mongo express is the web interface to mongodb, and runs on port 8081. this container is linked to the mongodb container and communicates with it via port 27017. | |||
Revision as of 06:56, 4 February 2018
netdata
Standalone netdata docker container: https://hub.docker.com/r/firehol/netdata/~/dockerfile/
(Note: this is the standard netdata repo https://github.com/firehol/netdata but the Dockerfile is conveniently embedded in there so it's picked up as a docker container)
The netdata container is am arm image, lightweight at 60 mb, and uses /host to connect to the host.
Not sure about the run script or the connection between the host and the container.
graphite
graphite container comes from graphiteapp docker image: https://hub.docker.com/r/graphiteapp/graphite-statsd/
Note that currently, the installed netstat instance (currently, an aptitude-installed instance of netdata) steps on the toes of this graphite container because port 8125 is open on the host machine.
To fix: slight modification of the port mappings in the docker run call.
Link: https://hub.docker.com/r/graphiteapp/graphite-statsd/
original Docker run call:
docker run -d\ --name graphite\ --restart=always\ -p 80:80\ -p 2003-2004:2003-2004\ -p 2023-2024:2023-2024\ -p 8125:8125/udp\ -p 8126:8126\ graphiteapp/graphite-statsd
Now, remap 8125 in the graphite container to 8124 on the host:
docker run -d\ --name graphite\ --restart=always\ -p 80:80\ -p 2003-2004:2003-2004\ -p 2023-2024:2023-2024\ -p 8124:8125/udp\ -p 8126:8126\ graphiteapp/graphite-statsd
mongodb
Link: https://charlesreid1.com:3000/docker/d-mongodb
mongodb is a nosql database and it runs on port 27017. The volume is run using the -v flag to create a mapping from the database's data directory to a folder on the host so that the data is persistent after the container goes away.
we have successfully set up a mongodb docker container to use a persistent data directory in /opt/mongodb and to start up on boot.
mongo express
Link: https://charlesreid1.com:3000/docker/d-mongoexpress
mongo express is the web interface to mongodb, and runs on port 8081. this container is linked to the mongodb container and communicates with it via port 27017.