ashman70 Posted May 24, 2020 Posted May 24, 2020 I have a dashboard setup now monitoring one of my unRAID servers and I have some questions. How would I add dashboards to monitor other unRAID servers? If I wanted to add a dashboard to monitor Plex, would I just add the data from the telegraf.conf file from the Plex dashboard to my existing telegraph.conf file for my unRAID dashboard, or does it become its own instance and if so how do I set that up? Quote
chris_netsmart Posted June 26, 2020 Posted June 26, 2020 I found this site to add your plex monitoring. https://github.com/barrycarey/Plex-Data-Collector-For-InfluxDB Quote
chris_netsmart Posted June 30, 2020 Posted June 30, 2020 @ashman70 if you are still looking on how to do the plex monitoring then I have resolve the issue. and got mine working. I will write up my notes and post them here before the weekend, if you are still interested Quote
chris_netsmart Posted July 2, 2020 Posted July 2, 2020 NOTE: I have taking information from 3rd Party websites and joined them together I have place the links and sites within his post. First we will set up Grafana and get it to monitor the Unraid environment requirements · running Docker service on your unRAID machine · Community Applications installed on your system · SSH access to your unRAID machine (alternatively, a file management application like Krusader or direct share access to your appdata folder) Used Software · InfluxDB - Database solution for storing all of our metrics. · Telegraf - Plugin-based metrics gathering software that will feed our metrics into InfluxDB for storage · Grafana - Metrics visualization software that will draw our dashboard Installation Part One: InfluxDB We'll be using InfluxDB as our database solution to save all the precious gathered metrics. 1. Go to your Apps section and search for "InfluxDB". 2. Install the InfluxDB Docker image by atribe. You don't have to make any changes to the settings except if you previously assigned port 8083 or 8086. If you have allocated ports 8083 or 8086 before, change those ports and make note of the change. Part Two: Telegraf We're using Telegraf to actually collect the metrics and send them to InfluxDB for storage. 1. Go to your Apps section and search for "Telegraf". 2. Install the Telegraf Docker image by atribe. We'll be using Telegraf, NOT unTelegraf (which does not use a configuration file but lets you change settings only by setting variables in the docker container configuration itself). Please remove the variable "HOST_MOUNT_PREFIX" in the installation overview. 3. After the installation go to your Docker section and stop the Telegraf docker. Download the telegraf.conf configuration file to your computer and open it with a text editor of your choice. 4. Navigate to the "Output Plugins" section in said config file and change the "urls" value under [[outputs.influxdb]] to your unRAID server's IP and port 8086 (or your chosen port number if you changed the InfluxDB settings). 5. In the same section, change the "database" name to "telegraf". 6. Navigate to the "Input Plugins" section. After "[[inputs.system]]", add "[[inputs.net]]" in a new line. This will enable network monitoring for all network interfaces. 7. If you want to monitor your docker containers, remove the # in front of [[inputs.docker]]. 8. If you would like to, you can change how often metrics are gathered in line 28 of the file under the section "Configuration for telegraf agent". The more frequently you gather metrics, the more CPU heavy Telegraf gets. I'd recommend 30 seconds. 9. Save the config file on one of your unRAID servers shares. Be careful to name it "telegraf.conf". Connect to your machine via SSH and move the "telegraf.conf" file from your user share to /mnt/user/appdata/telegraf. If a telegraf.conf file already exists, delete it and replace it with your file. 10. Restart Telegraf. From now on it should be feeding metrics into your running InfluxDB database. Part Three: Grafana Grafana will be our front-end, the piece of software you'll be observing all the metrics with. And since nobody likes staring at database tables to see CPU usage, we'll teach Grafana to draw some nice graphs with your collected metrics. 1. Go to your Apps section and search for "Grafana". 2. Install the Grafana Docker image by atribe. Set the GF_SERVER_ROOT_URL to your servers IP address (put http:// in front of it) and change GF_SECURITY_ADMIN_PASSWORD to a password of your liking. 3. After the installation go to Grafana's web UI (http://yourserverip:3000). Log in with the user name "admin" and your chosen password. You'll be greeted by your Home Dashboard. 4. Click on "Create your first data source". Give it a name, select InfluxDB as the type, enter http://YourServerIP:8086 for URL, set access to direct. Under InfluxDB Details set the database to telegraf. Save and test it. Grafana should now be connected to your InfluxDB database. Technical Ramblings screen shoots Download Unraid System Dashboard Next import the dashboard by hovering over the + icon and selecting Import local your Unraid System Dashboard click Load Give it a name and UID, select the database in the drop down and click Import. And now you should have a basic dashboard that is showing some information If not then click on one of the titles, and choose edit, And then choose change $telegrafdatasoruce to InfluxDB Servers So now well done you have Grafane working. Now for the Plex monitoring. Install the Tautulli docker and link it to your Plex Then install Varken Go to www.maxmind.com and create an account And follow the steps MaxMind (Required when using the Tautulli module): 1. Sign up for a MaxMind account. Make sure to verify the account. 2. Go to your Account, then Services > My License Key in the side menu, then click "Generate New License Key". 3. Enter a License key description, and select "No" for "Will this key be used for GeoIP Update?", then click "Confirm". 4. Copy the License Key and fill in the Varken config. For TautullI API go to the TautullI docker webGUI, click on Settings, then Web Interface and at the bottom, copy the API and copy it onto the Varken.ini file Go navigate to appdata\Varken folder And open the varken.example.ini You will need to modify the following https://github.com/Boerderij/Varken/wiki/Configuration change the numbers to false as we will not be using them copy your maxmind Licence Key Enter in your Unraid IP Address [global] sonarr_server_ids = false radarr_server_ids = false lidarr_server_ids = false tautulli_server_ids = 1 ombi_server_ids = false sickchill_server_ids = false unifi_server_ids = false maxmind_license_key = xxxxxxxxxxxxxxxx [influxdb] url = CHANGE THIS TO YOUR UNRAID SERVER IP port = 8086 ssl = false verify_ssl = false username = root password = root [tautulli-1] url = CHANGE THIS TO YOUR UNRAID SERVER IP:8181 fallback_ip = 1.1.1.1 apikey = xxxxxxxxxxxxxxxx ssl = false verify_ssl = false get_activity = true get_activity_run_seconds = 30 get_stats = true get_stats_run_seconds = 3600 restart Varken Test open your plex server and start streaming something open an explorer and type in http://YOUUNRAIDIPADDRESS:8181/api/v2?apikey=YOURTAUTULLIKEY&cmd=get_activity this should give you a page of information, Set up a new data source pointing to the varken database then Download this https://alexsguardian.net/2019/02/21/monitoring-your-media-server-with-varken/ and inport and lastly all you need to do is go through and change the data source in the new dashboard to point to varken. Referance Websites https://www.reddit.com/r/unRAID/comments/7c2l2w/howto_monitor_unraid_with_grafana_influxdb_and/ https://technicalramblings.com/blog/how-to-setup-grafana-influxdb-and-telegraf-to-monitor-your-unraid-system/ https://technicalramblings.com/blog/how-to-setup-grafana-influxdb-and-telegraf-to-monitor-your-unraid-system Plex Referance https://wiki.cajun.pro/books/varken/page/breakdown https://github.com/Boerderij/Varken/wiki/Configuration 2 Quote
chris_netsmart Posted July 2, 2020 Posted July 2, 2020 I hope that all helps. it is not as clean as spaceinvaderone videos but I think I have basics covered Quote
Marcjwebb Posted September 12, 2020 Posted September 12, 2020 can anyone share a good set up guide, everything I have found seems outdated and steps no longer match up Quote
Squid Posted September 12, 2020 Posted September 12, 2020 Have you seen this? https://www.reddit.com/r/unRAID/comments/7c2l2w/howto_monitor_unraid_with_grafana_influxdb_and/ Quote
Marcjwebb Posted September 12, 2020 Posted September 12, 2020 Have you seen this? https://www.reddit.com/r/unRAID/comments/7c2l2w/howto_monitor_unraid_with_grafana_influxdb_and/Yeah that’s the guide I tried to follow. But it quickly shows that the guide doesn’t match with the latest version. It asks to stop it and export a config file, but after install it wasn’t running and it asks for a co gif file to be added first. Just didn’t match so made it hard to follow. Will try again though. Sent from my iPhone using Tapatalk Quote
falconexe Posted September 28, 2020 Posted September 28, 2020 On 9/12/2020 at 4:33 PM, Squid said: This thread might help I ran that thread. This one will help more! I am the developer of the Ultimate UNRAID Dashboard (UUD). Check it out! Quote
fiR3W4LL Posted June 10, 2022 Posted June 10, 2022 Hi Guys Does someone else have this Problem?? Everytime i update Grafana, it looses everything. All settings/databases are gone. Have to redoit from scratch? Thx for help. Regards Quote
fiR3W4LL Posted June 10, 2022 Posted June 10, 2022 Found the Problem, the Host Path was set to /var/lib/grafana2 instead of grafana, dont know why. But Grafana now stores the Files in the right folder. Quote
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.