May 27, 201610 yr docker run -d --cap-add SYS_PTRACE -v /proc:/host/proc:ro -v /sys:/host/sys:ro -p 19999:19999 titpetric/netdata then http://serverip:19999 from https://hub.docker.com/r/titpetric/netdata/ I cant get the docker names to show though -tried docker run -d --cap-add SYS_PTRACE -v /proc:/host/proc:ro -v /sys:/host/sys:ro -v /var/run/docker.sock:/var/run/docker.sock -p 19999:19999 titpetric/netdata Otherwise, it works well! :-) I will make a template for it if people want.
May 27, 201610 yr This is great and soooo easy!! edit: Spants, I hope you dont mind. It was tempting to try myself on a template. My first attempt ... https://raw.githubusercontent.com/Data-Monkey/unRAID/master/templates/netdata.xml EDIT: Moved to: Repository: https://github.com/Data-Monkey/docker-templates Template: https://raw.githubusercontent.com/Data-Monkey/docker-templates/master/Data-Monkey/netdata.xml
May 28, 201610 yr The template seems to work and the docker is running fine as well. I am a bit concerned that there is no external directory mapping. So I assume all the logs and the data gets stored in the docker and that can't be a good thing. I want to see if I can expose the log, data and config directory.
May 31, 201610 yr The template seems to work and the docker is running fine as well. I am a bit concerned that there is no external directory mapping. So I assume all the logs and the data gets stored in the docker and that can't be a good thing. I want to see if I can expose the log, data and config directory. Thank you for the XML, I think this a great app to run in unRAID for performance monitoring! Any updates on the logs and external data? I figured I would just map /var/log but I haven't the slightest clue where the data is kept.
June 1, 201610 yr Actually the logs get redirected to stdout and stderr. So they show in the docker container log. I need to find out if docker then handles the housekeeping of those. I wasn't yet successfull in locating the data. Will have another go over the weekend. EDIT: This might be part of the answer: http://lime-technology.com/forum/index.php?topic=45249.0
June 2, 201610 yr Author Thanks for the templates guys, works wonderfully! Although I have noticed space in my docker image being eaten away, probably the logging issue.
June 3, 201610 yr Hi, the logging should go outside of the docker.img Could you please check the img size using this command? It could take a while depending on your img size. docker ps -a -s | grep titpetric/netdata mine shows: 12.29 MB (virtual 152.7 MB) after about 1hr of runtime You can check the log size by running this: du -ah /var/lib/docker/containers/ | grep "log$" | grep f44c3694b757 where you need to replace the container id with your own id (shown in the result from the first command.
June 3, 201610 yr I have also had a better look at how the other guys have structured their github and have decided to follow, so the template has moved. Repository: https://github.com/Data-Monkey/docker-templates Template: https://raw.githubusercontent.com/Data-Monkey/docker-templates/master/Data-Monkey/netdata.xml I will start a support thread soon and add the link here. EDIT: https://lime-technology.com/forum/index.php?topic=49534.0
Archived
This topic is now archived and is closed to further replies.