atribe Posted August 31, 2016 Share Posted August 31, 2016 (edited) Overview: Support for Docker images from atribe's repo. Tutorial to use Grafana, Influxdb, and Telegraf in unRAID by PanzerschreckGER. Influxdb: Application: https://influxdata.com/ Docker Hub: https://hub.docker.com/_/influxdb/ GitHub: https://github.com/influxdata/influxdb Grafana: Application: http://grafana.org/ Docker Hub: https://hub.docker.com/r/grafana/grafana/ GitHub: https://github.com/grafana/grafana Glances: Application: https://github.com/nicolargo/glances Docker Hub: https://hub.docker.com/r/nicolargo/glances/ GitHub: https://github.com/nicolargo/glances apt-cacher-ng: Application: https://www.unix-ag.uni-kl.de/~bloch/acng/ Docker Hub: https://hub.docker.com/r/sameersbn/apt-cacher-ng/ GitHub: NA untelegraf: Application: https://influxdata.com/time-series-platform/telegraf/ Docker Hub: https://hub.docker.com/r/appcelerator/telegraf/ GitHub: https://github.com/influxdata/telegraf telegraf: Application: https://influxdata.com/time-series-platform/telegraf/ Docker Hub: https://hub.docker.com/_/telegraf/ GitHub: https://github.com/influxdata/telegraf Note: You will need to place your own configuration file at /mnt/user/appdata/telegraf/telegraf.conf or the container will not start. mineos-node: Application: https://minecraft.codeemo.com/mineoswiki/index.php Docker Hub: https://hub.docker.com/r/hexparrot/mineos/ GitHub: https://github.com/hexparrot/mineos-node hddtemp: Application: https://linux.die.net/man/8/hddtemp Docker Hub: https://hub.docker.com/r/drewster727/hddtemp-docker/ GitHub: https://github.com/Drewster727/hddtemp-docker apcupsd-influxdb-exporter Application: https://github.com/atribe/apcupsd-influxdb-exporter Docker Hub: https://hub.docker.com/r/atribe/apcupsd-influxdb-exporter Github: https://github.com/atribe/apcupsd-influxdb-exporter Credit: I didn't create any of these applications or images, I just created the xml template. Changelog: 2016-08-31 - Added Glances and Apt-cacher-ng. 2016-09-02 - Added Influxdb and Grafana. 2016-09-06 - Added Telegraf that uses environment variables. 2016-09-11 - Added standard Telegraf. 2016-09-24 - Added Node.JS MineOS. 2017-11-10 - Added link to tutorial for telegraf, influxdb, and grafana. 2018-05-26 - Added hddtemp 2019-01-22 - Added apcupsd-influxdb-exporter Edited January 23, 2019 by atribe Added tutorial link 2 Quote Link to comment
spylex Posted September 7, 2016 Share Posted September 7, 2016 Hey there, this is great. I would like to get started on building a Grafana dash for unRAID that records historical data - this seems to be ideal for doing this. atribe perhaps you should get a repository for peoples templates here and maybe a small how-to guide? Quote Link to comment
atribe Posted September 8, 2016 Author Share Posted September 8, 2016 Hey there, this is great. I would like to get started on building a Grafana dash for unRAID that records historical data - this seems to be ideal for doing this. atribe perhaps you should get a repository for peoples templates here and maybe a small how-to guide? A how to guide would probably be a good idea. I'll see if I can come up with something soon. Quote Link to comment
Viaduct Posted September 8, 2016 Share Posted September 8, 2016 Hi. Still working good here. Had a go at some basic dashboards but still learning. Can't see any metrics for temperature though. Both netdata and munin get the CPU temp ok via volume mapping. I presume need to add a plugin into the docker telegraf config folder? Or is it something basic in my setup? Missing lm sensors or something. I would also love to have hddtemp in the metrics too. Is that the same problem, need plugin? I can really see the potential of the telegraf/influxdb/grafana method though. Configurable to the nth degree! Sent from my iPhone using Tapatalk Quote Link to comment
bb12489 Posted September 12, 2016 Share Posted September 12, 2016 For some reason the Grafana icon isn't showing on my Unraid Dashboard. Just shows as a broken img. I don't believe it's an issue with my server. All other dashboard icons are working. Quote Link to comment
atribe Posted September 12, 2016 Author Share Posted September 12, 2016 For some reason the Grafana icon isn't showing on my Unraid Dashboard. Just shows as a broken img. I don't believe it's an issue with my server. All other dashboard icons are working. I never set up an icon, so that's why it looks like that. Quote Link to comment
bb12489 Posted September 12, 2016 Share Posted September 12, 2016 For some reason the Grafana icon isn't showing on my Unraid Dashboard. Just shows as a broken img. I don't believe it's an issue with my server. All other dashboard icons are working. I never set up an icon, so that's why it looks like that. Oh weird. In community apps it shows an icon, so I thought it had an icon. My bad! Sent from my XT1575 using Tapatalk Quote Link to comment
Squid Posted September 13, 2016 Share Posted September 13, 2016 For some reason the Grafana icon isn't showing on my Unraid Dashboard. Just shows as a broken img. I don't believe it's an issue with my server. All other dashboard icons are working. I never set up an icon, so that's why it looks like that. Oh weird. In community apps it shows an icon, so I thought it had an icon. My bad! Sent from my XT1575 using Tapatalk There is an icon specified in the template. However it is a .svg CA works a little differently that unRaid. CA passes through the URL's for icons directly to the browser for it to display. The docker engine in unRaid insists on downloading the icon during installation and then passing a URL for the local copy to the browser. Its probably because .svg isn't a recognized format by unRaid that this is failing. Quote Link to comment
atribe Posted September 14, 2016 Author Share Posted September 14, 2016 There is an icon specified in the template. However it is a .svg Ah so it is. I'll have to fix that. Quote Link to comment
Viaduct Posted September 22, 2016 Share Posted September 22, 2016 I would also love to have hddtemp in the metrics too. Is that the same problem, need plugin? Hi, I figured I wasn't clever enough to get the docker to do temperatures and wasn't really sure if it was possible to do it from the docker anyway, so I decided to write my very first PHP script! I managed to get sensible outputs for 'HD Temp' parsing the output of 'smartctl' for each of my disks, and luckily they still sense temperature without spinning up and when spun down. I used 'apcaccess' for UPS data so I can get the load on my UPS in watts (I have cable modem and router on the UPS as well as the server). I used 'hdparm' for spin status. And I used ipmi-sensors for fan speed and MB/CPU temp. Sending the data to influxdb via curl is quite straightforward. I use crontab to invoke the scripts which reside in my appdata folder. I have no idea if this is a sensible way of doing it and the scripts are very rough, but seems to work! Quote Link to comment
atribe Posted September 22, 2016 Author Share Posted September 22, 2016 @Viaduct, that is awesome? Could you share the script? Maybe post it on GitHub or something? Also, your crontab command? I want to try this. It looks amazing. Quote Link to comment
RobJ Posted September 22, 2016 Share Posted September 22, 2016 I agree, that is awesome work, awesome graphs! Now if we just had some guides (hint, hint) Lots of smart people here, but many of us don't have time for more learning curves, would like already prepped and cooked products, ready to use, with a simple configuration screen for the particular components we want. The ideal would be a user designed Dashboard with those graphs, *easily* set up and configured. I suppose that that 'easily' and the time it takes is the problem that will block many of us. I'd love to see a component for long-term SMART history, among other things. Quote Link to comment
Viaduct Posted September 22, 2016 Share Posted September 22, 2016 No worries guys. I'll do a how to guide soon. I'll tidy the scripts up over the weekend and post something. Possibly in a new thread. I have absolutely no idea about github, I'm not a developer or programmer and the last time I wrote anything resembling a program or script was in the 80s in BASIC! So I probably can't vouch whether the scripts are safe to run or not, nor can I probably support users where the scripts might not work. But, happy to post them as a starting point and others more capable can refine them. Sent from my iPhone using Tapatalk Quote Link to comment
Viaduct Posted September 24, 2016 Share Posted September 24, 2016 OK. I've started a thread in the user customisations board. https://lime-technology.com/forum/index.php?topic=52220.0 Any corrections or suggestions for improvement is very welcome! Quote Link to comment
pipo90 Posted October 4, 2016 Share Posted October 4, 2016 Hey, hope im in the right thread here. I use the mineos-node and I love it! Setting up a FTB Server was really easy. I have a question about the docker itself though. I installed it (via Community Apps) and then it said there is an update right away. I did that and after it would still say theres an update, so its never showing "up-to-date". Did I do something wrong or is it an error in the script ? Im just wondering if I did something wrong and having it not up to date also gets my OCD going Quote Link to comment
Squid Posted October 4, 2016 Share Posted October 4, 2016 Hey, hope im in the right thread here. I use the mineos-node and I love it! Setting up a FTB Server was really easy. I have a question about the docker itself though. I installed it (via Community Apps) and then it said there is an update right away. I did that and after it would still say theres an update, so its never showing "up-to-date". Did I do something wrong or is it an error in the script ? Im just wondering if I did something wrong and having it not up to date also gets my OCD going What version of unRaid? Quote Link to comment
atribe Posted October 4, 2016 Author Share Posted October 4, 2016 Hey, hope im in the right thread here. I use the mineos-node and I love it! Setting up a FTB Server was really easy. I have a question about the docker itself though. I installed it (via Community Apps) and then it said there is an update right away. I did that and after it would still say theres an update, so its never showing "up-to-date". Did I do something wrong or is it an error in the script ? Im just wondering if I did something wrong and having it not up to date also gets my OCD going What version of unRaid? @Squid, I'm glad you saw this, because I have no idea. Quote Link to comment
pipo90 Posted October 4, 2016 Share Posted October 4, 2016 What version of unRaid? 6.2 Edit: I already completely deleted the docker and any folders created by it and got it again via Community Apps. Had an update right away, still said it has an update after running it. Quote Link to comment
Squid Posted October 5, 2016 Share Posted October 5, 2016 Hey, hope im in the right thread here. I use the mineos-node and I love it! Setting up a FTB Server was really easy. I have a question about the docker itself though. I installed it (via Community Apps) and then it said there is an update right away. I did that and after it would still say theres an update, so its never showing "up-to-date". Did I do something wrong or is it an error in the script ? Im just wondering if I did something wrong and having it not up to date also gets my OCD going What version of unRaid? @Squid, I'm glad you saw this, because I have no idea. Neither do I... Does the same thing on my system Weird thing is that during the initial install, it displayed this: Digest: sha256:1db3dbb722800da3899460e90ebdd0b2f1e893c79dc528cb73a83a658ebe0de3 Status: Downloaded newer image for hexparrot/mineos:node-jessie 1603d9cecc7fa948e84d4c595e4168392da9f5ba19b8af4c1652d74300806a04 Which I've never noticed before Quote Link to comment
pipo90 Posted October 5, 2016 Share Posted October 5, 2016 I take from this that you guys get the same error, at least im not alone Quote Link to comment
Bjonness406 Posted October 7, 2016 Share Posted October 7, 2016 Tried a force update of the docker (advanced view)? Quote Link to comment
dalben Posted October 8, 2016 Share Posted October 8, 2016 I get the same error. Deleted and recreated but no luck. Still there. Has anyone managed to get pocketmine working with this docker? Quote Link to comment
atribe Posted October 8, 2016 Author Share Posted October 8, 2016 I get the same error. Deleted and recreated but no luck. Still there. Has anyone managed to get pocketmine working with this docker? Haven't tried pocketmine. If it works on normal mineos node it should work here too. Quote Link to comment
RAINMAN Posted October 19, 2016 Share Posted October 19, 2016 Something seems wrong with the grafana docker. The plugins directory doesnt seem to work if i drop files in there. If I attach to the docker and run the CLI command it adds the plugin properly but it doesnt show in the plugins directory externally but does within the docker, yet the mapping seems to be right When i update the docker it destroys the plugins as expected since the mapping seems broken. Second, how do you update the settings. (grafana.ini) This is not exposed?? Quote Link to comment
RAINMAN Posted October 25, 2016 Share Posted October 25, 2016 After looking at this closer, you can create environment variables to have it install the plugins using CLI by setting an environment variable key to GF_INSTALL_PLUGINS and setting the value to the name of the plugin you want to install. Example value for 2 plugins: grafana-clock-panel,grafana-simple-json-datasource Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.