[Plugin] Prometheus unRAID Plugins


Recommended Posts

Prometheus unRAID Exporter Plugins

 

This is the support thread for the Prometheus unRAID Exporter plugins.

If you got a request for a Prometheus Exporter plugin feel free to ask here in the thread.

 

Following plugins for Prometheus Exporters are available (click on the name to go to the tutorial post):

  • Node Exporter (this post)
    Data from your unRAID Server
  • nvidia-smi Exporter
    Data from your Nvidia card(s) passed through to Docker
  • PiHole Exporter
    Data from your PiHole, whether from Docker or your local network
  • MSI Afterburner Exporter
    Data from your local PC/VM
  • Wireguard Exporter
    Data from unRAID Wireguard
  • AdGuard Exporter
    Data from your AdGuard, whether from Docker or your local network
  • Fritzbox Exporter
    Data from your Fritzbox

 

 

Tutorial Grafana, Prometheus & Node Exporter base configuration to get the basic readings from unRAID:

 

  1. Go to the CA App and download the Grafana Docker container:
    1.png.d735eded5d0151c1b73cd2be90c1a3f7.png
     
  2. Download the Prometheus Docker container from the CA App (please note that it will be stopped after the installation, that's just fine and will be fixed in the next steps):
    2.png.946cb68e998fa387165974e6909fda24.png
     
  3. Download and install the Prometheus Node Exporter plugin from the CA App:
    3.png.69039980217d7c38ba68037b059f04be.png
     
  4. Download the 'prometheus.yml' and place it in your '.../appdata/prometheus/etc' directory on your unRAID server: prometheus.yml
    4.png.96cc50fa9c18f39aa67e9d2a66f00bc9.png
     
  5. Open the prometheus.yml and edit the part 'YOURUNRAIDSERVERIP' so that it matches your server IP, save and close the file:
    grafik.thumb.png.c9927d0ca72cbfc25b34e3a7f34e72a4.png
     
  6. Go to your Docker page and start the Prometheus Docker container:
    6.png.05a7d9128f1ca7fc9f91616096da5481.png
     
  7. After it is started click the Prometheus container again and select WebUI:
    7.png.96d2375e264b0313b8c1f410eb29b73a.png
     
  8. On the top click on "Status -> Targets":
    8.png.53aaa38b26d15f1a8735b001352c5402.png
     
  9. You should see now a list with two entries, the entry "YOURSERVERIP:9100" should display "UP" like in the following screenshot:
    9.thumb.png.01cec83e66dad5a868a113f25d3f9709.png
  10. Go to the Docker page and start the Grafana WebUI:
    10.png.1172b8f713fa9977ce3a03a5f7993db6.png
     
  11. Login with your Username and Password (default: admin | admin):
    11.png.1923b8680f4a963a9803bea601b30b22.png
     
  12. If you left it at default you should change the password in the next screen to something secure or press "Skip":
    12.png.7d72ef9b1836b253b29e2c61a3ff538c.png
     
  13. Next we are going to configure the Prometheus datasource in Grafana, click on the "Gear Icon -> Data sources":
    13.png.faa6e420d69e14ce1a8d3948196cbb7e.png
     
  14. Click on "Add data source":
    14.png.6028a97dd10baa0603ab5c6819852154.png
     
  15. At Prometheus click on "Select":
    15.png.6ac103a0ad48ff850563cb05c24db04c.png
     
  16. In the next screen enter the IP and Port from your Prometheus container like this:
    17.png.947086221b2746ede69849179817b8d8.png
    (You can check the IP:PORT on your Docker page):
    16.png.bbe022930593fc86676bcf9203b36102.png
     
  17. At the bottom click on "Save & Test":
    18.png.cc5bfca7911fbc37cd0419b6e4d7f7c6.png
    You should see this message:
    19.png.09cbf0e153c2d60239fac03e81d16b16.png
     
  18. In Grafana click on "+ -> Import":
    20.png.c0d39ddfa4a702aeb79d1e655626e47e.png
     
  19. Now we are going to import a preconfigured Dashboard for the Node Exporter from Grafana.com (Source), to do this simply enter the ID from the Dasboard and click "Load":
    21.png.772dec12d4c9af8e71e9ccf81aa0702e.png
     
  20. In the next screen be sure to select "Prometheus" as the data source and rename the Dashboard to your liking:
    22.thumb.png.0930807399120a49bd9d32d1612ac862.png
     
  21. Click on "Import":
    23.png.67b8b80d4af44631acff772d88461062.png
     
  22. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    24.thumb.png.5ab37e17649af4054d3c766fd0793c15.png
    (Please
    also keep in mind that some values will not be filled at all because unRAID by default don't have a SWAP)

 

  • Like 2
  • Thanks 8
Link to comment

Dashboard Hints

 

Create your very own customized Dashboard from the templates:

 

  1. Open two window side by side from Grafana
     
  2. In the first window open up the Dashboard from which you want to import panels
     
  3. In the second window click on "+ -> Dashboard" and click on "Add an empty panel" and click on the back arrow on the top:
    grafik.png.c3f4c72092b86954620078326a3b95f9.png
    grafik.png.44ffee25804c3b0f0368dc02cf04d32d.png
    grafik.png.bad5a97bb55a6415cf5e4bf763dc0df3.png
     
  4. Back in the first window click on the little arrow that appears when you hover over the name from the panel with the cursor that you want to move over to your new Dashboard and select "Inspect -> Panel JSON":
    grafik.png.b4514ae99e92e722f3afbe60767b8a23.png
     
  5. Copy the whole text from the appearing side panel in your clipboard with CTRL+C:
    grafik.thumb.png.65bac4a71c21b73ad90e36db180ef21e.png
     
  6. Go to the second window and hover over the name from the empty panel with the cursor and select "Inspect -> Panel JSON":
    grafik.png.8b4dbca3ff90ac82bf21c9386879d906.png
     
  7. Paste the contents from Step 5 with CTRL+V from the appearing side panel and click "Apply":
    grafik.thumb.png.71a1425243368063228d01748e5aa7dc.png
     
  8. If you got an empty panel like in this case your source Panel from which you copied the JSON has most likely variables configured that you can also define in your new Dashboard:
    grafik.png.56f3f39407b25c5aed776d585fd7b737.png
     
  9. Click on the little Gear icon on the very top in your first and also in your second window:
    25.png.ad63161be60e3f7a033029b0cf75e938.png
     
  10. Click in both windows on "Variables" and add the missing variables from the first to the second window (the missing variables that you have to add are displayed on the bottom):
    grafik.thumb.png.81ddd0b55fd48e63b6c8db0ac0dab24f.png
     
  11. Copy over all fields from the first to the second window so that they match and click "Update":
    grafik.thumb.png.71c76bf05cc7b39d6fb21434e3d0cb67.png
     
  12. Once you copied over all variables and none missing Variables are displayed anymore click on "Save dashboard" and in the following dialog box on "Save":
    grafik.thumb.png.6c38efcee60f8851ec923247193b8cc6.png
     
  13. Now you should see your panel in it's full glory:
    grafik.png.4151b89420443f82be28c5c0fedd6af8.png

 

Note if you added (a) missing variable(s) from a "old" Dashboard to a "new" these variables apply globally to the "new" Dashboard so you don't have to configure it for each Panel.

 

 

 

Make your Dashboard non editable:

 

  1. Open the Dashboard and click on the Gear icon:
    25.png.ad63161be60e3f7a033029b0cf75e938.png
     
  2. In the General tab go switch from "Editable" to "Read-only":
    26.thumb.png.180014908119810daa7194dc99137708.png
     
  3. Click on "Save dashboard":
    27.png.f2233ba0a8df58025084fd6d9b71785c.png
     
  4. In the next dialogue click on "Save":
    28.png.13fc23b318d3d99eb3cb6680af0046b8.png
     
  5. Click on the "Back Arrow" on top to go back to your template:
    29.png.a8006115362624d7e60d31b91520a158.png
     

To make Dashboard editable again do the steps from above and in Step 2 switch from "Read-only" to "Editable".

  • Like 2
Link to comment

Prometheus nvidia-smi Exporter

 

(For this Exporter you need to have the Nvidia-Driver plugin installed and made sure that you Nvidia Card is not bound to VFIO)

If you want to watch the Status of a passed through graphics card in a VM or your local computer, install the Prometheus MSI Afterburner Exporter plugin.

 

  1. Download and install the Prometheus nvidia-smi Exporter plugin from the CA App:
    44.png.9ffbdd92b248acaa4b1828f388db4dcd.png
     
  2. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9202"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    45.png.fe90beded233cc0b721577fd74a41225.png
     
  3. Go to the Docker page and restart Prometheus:
    36.png.9be2f4e547badf0cc7735382fec198fc.png
     
  4. Open up the Grafana WebUI:
    39.png.64cdc43cad490b2de98291c65083c3e6.png
     
  5. In Grafana click on "+ -> Import":
    20.png.4d83e95b87c66dbf21649fd040cc4e5b.png
     
  6. In the following windows click on "Upload JSON file" and upload the nvidia-smi.json file: nvidia-smi.json
    46.png.f0fa032d792caa46215715b6b39004b0.png
     
  7. Rename the Dashboard to your liking and click on "Import":
    47.png.b481b8bf77e9027e480bedf88ea6af13.png
     
  8. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    48.thumb.png.2bea24dc0ecbae06f0fc9134110e25f6.png
  • Like 1
  • Thanks 1
Link to comment

Prometheus PiHole Exporter

 

Note: You can connect to any PiHole on your local network and of course if you run it on unRAID in a Docker container or VM.
 

  1. Download and install the Prometheus PiHole Exporter plugin from the CA App:
    30.png.0742e217e22991884b82f96a5734760c.png
     
  2. Go to the plugin settings by clicking on "Settings -> Pi-Hole Exporter (at the bottom of the Settings page)":
    31.png.9d499f93a0d944b9446e9457f77d8768.png
     
  3. Enter your IP from PiHole and also your API Token and click on "Confirm & Start":
    33.thumb.png.0f77eade3f95e850ccf63dc16a37ceff.png
    (Please note that if you run your PiHole in a Docker container in a Custom network like br0 you have to enable the option "Enable host access" in your Docker settings, otherwise the plugin can't connect to your PiHole instance)

    To get your API Token go to your PiHole instance, Login and click on "Settings -> API / Web interface -> Show API Token -> Yes, show API Token":
    32.png.2f18fadf85ff716ced9b63c802610c5f.png
    grafik.png.1e1b59162c5e064a7745fb9c47b444e8.png
     
  4. After that you should see in the right top corner that the Exporter is running and details about it:
    34.thumb.png.73e74cf0d91e623daba9cea84eb46929.png
     
  5. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9617"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    35.png.b719c6d8ef5d5d5c1c498b561c5d10af.png
     
  6. Go to the Docker page and restart Prometheus:
    36.png.c707af89b70026229d55bf37f4e2760b.png
     
  7. Open up the Grafana WebUI:
    39.png.94e97735c8e51095afa5e2419b368910.png
     
  8. In Grafana click on "+ -> Import":
    20.png.63664aa075e25fc83087e05be0e50b94.png
     

  9. Now we are going to import a preconfigured Dashboard for the PiHole Exporter from Grafana.com (Source), to do this simply enter the ID (10176) from the Dasboard and click "Load":
    37.thumb.png.e9337afbe90955b0b06fb1b2b4f13cfe.png
     

  10. In the next screen rename the Dashboard to your liking and click on "Import"
     

  11. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    38.thumb.png.30b151b62f9dd9bdafe91dee31cccc06.png
    (Now you will notice that this warning: "Panel plugin not found: grafana-piechar-panel" appears on the Dasboard, to fix this follow the next steps)
     

  12. Go to your Docker page and click on Grafana and select "Console":
    39.png.480fbd464fb1790572e1abdec9efbfc6.png
     

  13. In the next window enter the following 'grafana-cli plugins install grafana-piechart-panel' and press RETURN:
    40.png.26fb73f31a6ebb7d1e8d009e7b81c1a6.png
     

  14. After that close the Console window and restart the Grafana Docker container:
    41.png.4c27febef332b244db87fc119a898789.png
     

  15. Now go back to your PiHole Dashboard within Grafana and you should now see that the Dasboard is fully loaded:
    42.thumb.png.ec5bb36b95ecd85986fd5ebbf9efa24a.png

 

 

 

ATTENTION

Please note if you restart your PiHole container the Exporter will stop and you have to manually start it from the plugin configuration page with the "START" button.

 

This is also applies if you have CA Backup installed and the container is beeing backed up.

 

To workaround that you don't have to manually restart it after each CA Backup do the following steps:

 

  1. Go to Settings and click on the bottom on "Backup/Restore Appdata":
    grafik.png.0045d5a3871d1f5740fcca147981c1a1.png
     
  2. Confirm the Warning that pops up and scroll all the way down to the bottom and click on "Show Advanced Settings":
    grafik.png.9efa350bcd19143bc41507d2df57e09b.png
     
  3. At Pi-Hole make sure that you click on the switch so that it shows "Don't Stop":
    grafik.png.70506f1b2641d2d30f837561a74bbc72.png
     
  4. Scroll down to the bottom and click "Apply":
    grafik.png.15a5a572f5ca76bdf74d3581679ca1df.png

 

 

NO DATA SHOWING UP IN THE PIHOLE DASHBOARD

If no data is showing up in the PiHole Dashboard it is most likely the case that you have configured another Datasource like Telegraf in Grafana, to solve this issue go to this post:

 

  • Like 2
  • Thanks 2
Link to comment

Prometheus MSI Afterburner Exporter

 

With this plugin you can export the status from your local PC or a VM, running for example on unRAID, to Prometheus.

Note: This plugin needs MSI Afterburner and MSI Afterburner Remote Server installed to work on the machine you want to watch (you can get them here )!

 

  1. Download and install the Prometheus MSI Afterburner Exporter plugin from the CA App:
    43.png.a491c8e15908ffa23e6a7c77cafa59cc.png
     
  2. Go to your local local PC/VM and install MSI Afterburner and also MSI Afterburner Remote Server:
    grafik.png.284c21eb3f3bc6f04a21423cf5705e96.png
    (In the case for MSI Afterburner Remote Server I recommend to extract the folder to C:\Program Files (x86)\RemoteServer folder and configure the  "MSIAfterburnerRemoteServer.exe" to run on boot as Administrator)
     
  3. Go to the plugin settings by clicking on "Settings -> Afterburner Exporter (at the bottom of the Settings page)":
    grafik.png.9e9cb6afd47db76b0fbd3804e80d2501.png
     
  4. Enter your IP from your local PC/VM and click on "Confirm & Start":
    grafik.thumb.png.51fd935ac2eaa0d13b9a6e09912de3bf.png

    To get your IP go to your local PC/VM and doubleclick on the MSI Afterburner Remote Server icon and it will tell you the IP (in this case the second line is relevant since 127.0.0.1 = localhost is only reachable from the local PC/VM and your server actually can't connect to this address):
    grafik.png.7dde29469e174ba2bb07590dd46936d4.png
    (It is strongly recommended to assign your local PC/VM a static IP in your Router/Firewall)
     
  5. After you started it you should see in the right top corner that the Exporter is running and details about it:
    grafik.thumb.png.1f11f31d4617160fa491f40d5af6b82e.png
     
  6. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9891"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    10.png.c1dfd475b823f0acee355af92921338a.png
     
  7. Go to the Docker page and restart Prometheus:
    36.png.81f664379236ca0f52674563fd459557.png
     
  8. Open up the Grafana WebUI:
    10.png.a1cf9b4ae51a308b0c4d6c9b9935dd6d.png
     
  9. In Grafana click on "+ -> Import":
    20.png.b1be317af42ff6607f4b9ff78d823439.png
     
  10. In the following windows click on "Upload JSON file" and upload the MSI Afterburner.json file: MSI Afterburner.json
    46.png.1e197e94f56d5d5d652eb7b4b4ecf381.png
    (thanks to @alturismo who created that Dashboard)
     
  11. In the next screen rename the Dashboard to your liking and click on "Import":
    grafik.png.ac4e6d2177115132f6935febe78f94cf.png
     
  12. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    grafik.thumb.png.1cbbaea3428f513ce401308a42e8d30b.png
  • Like 3
Link to comment

Prometheus Wireguard Exporter

 

With this plugin you can monitor your Wiregard VPN Server that is running on your unRAID Server.

 

  1. Download and install the Prometheus Wireguard Exporter plugin from the CA App:
    grafik.png.dcf54a613894fa6342a45bddb5d84c76.png
     
  2. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9586"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    image.png.85950b9fbd4e3427e101b6fcf73bcd33.png
     
  3. Go to the Docker page and restart Prometheus:
    36.png.9be2f4e547badf0cc7735382fec198fc.png.b186c6a3906f5c43431954774363c96c.png
     
  4. Open up the Grafana WebUI:
    10.png.a1cf9b4ae51a308b0c4d6c9b9935dd6d.png.e9c1f0ba57158b3adf8be6784c12540e.png
     
  5. In Grafana click on "+ -> Import":
    20.png.4d83e95b87c66dbf21649fd040cc4e5b.png.6ce8a0ad4eee14f8941405dcd0182d71.png
     
  6. In the following windows click on "Upload JSON file" and upload the WireGuard.json file: WireGuard.json
    46.png.1e197e94f56d5d5d652eb7b4b4ecf381.png.c992da311a1c11318421741810eb7a74.png
     
  7. In the next screen rename the Dashboard to your liking and click on "Import":
    image.png.e4a8ec3bd4251dc708e0f64950cbd3ca.png
     
  8. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values since there is not enough data available, wait a few minutes and you will see that the values are filled in, of course a client has to be connected and transmit/receive data):
    1.thumb.png.2694bd97db27117f72b6e534ab411a2e.png

 

 

 

Rename Public Keys to match your devices

 

  1. Click on the down arrow on the table that shows all information about the clients and select "Edit":
    2.thumb.png.13ecaf3e9bfd7820ceb6383260d7ecb9.png
     
  2. Copy the Public Key for the device you want to rename:
    7.thumb.png.dc410dc90af1e8a9ee9ca91bcd7514f7.png
     
  3. In the right sidebar scroll down to "Override 2" click on "Add override property" and select "Value mappings > Value mappings":
    3.png.3c86b64f8a76ed41f4630a1e81631ae9.png
     
  4. Click on "Add value mappings":
    4.png.728183a8fc362639f6ebd5b0849fda22.png
     
  5. Click on "Add a new mapping":
    5.png.f52f85a7b35457ca3ed62419d807ce65.png
     
  6. In the following pop-up choose "Value":
    6.thumb.png.111141deff4554cd26215bfdc25afbaa.png
     
  7. Then paste the copied Public Key from Step 2 in the "Value" field and at "Display text" your preferred device name and click on "Update":
    8.thumb.png.78b4fd7655548c90babe6f451bcef389.png
     
  8. Then you should see that the Public Key is now changed to the entered "Display text" from Step 6:
    9.thumb.png.dead4ad06a0891c7e21a02fdbd948f41.png
     
  9. Don't forget to save your changes to the Dashboard by clicking on "Save" on the top right corner:
    10.png.7ae26d70cb03e5180df2791aaafd0381.png
     
  10. In the pop-up click again "Save":
    11.png.cfa2f338a7a2993277776bd88d7fbf97.png
     
  11. And finally click on "Apply" on the top right corner:
    12.png.c778c28367127d37ac03e287fc8d1b3c.png

 

 

If you have more devices that you want to rename simply repeat this steps for each Public Key.

  • Like 1
  • Thanks 2
Link to comment
  • ich777 changed the title to [Plugin] Prometheus unRAID Plugins

Prometheus AdGuard Exporter

 

Note: You can connect to any AdGuard Home on your local network and of course if you run it on unRAID in a Docker container or VM.

 

  1. Download and install the Prometheus AdGuard Exporter plugin from the CA App:
    grafik.png.18895456d371d3b1ac0bb5ef37ea0969.png
     
  2. Go to the plugin settings by clicking on "Settings -> AdGuard Exporter" (at the bottom of the Settings page) :
     grafik.png.b6c990d66208b3cb536d06ff45a90c9b.png
     
  3. Enter your IP from AdGuard, Port, admin username & the password and click on "Confirm & Start":
    grafik.thumb.png.4425d3e0edfb7e8f770b63bd79abfd42.png
    (Please note that if you run your AdGuard in a Docker container in a Custom network like br0 you have to enable the option "Enable host access" in your Docker settings, otherwise the plugin can't connect to your AdGuard instance)
     
  4. After that you should see in the right top corner that the Exporter is running and details about it:
    grafik.thumb.png.1b845a77a1be18f2f56502c4f9e562d7.png
     
  5. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9617"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    grafik.png.c7beaa8d45eaf40f47a8d92839a98f58.png
     
  6. Go to the Docker page and restart Prometheus:
    36.png.c707af89b70026229d55bf37f4e2760b.png.de6b95c0697f2a7a193f7a3212870c64.png
     
  7. Open up the Grafana WebUI:
    39.png.94e97735c8e51095afa5e2419b368910.png.64ab631daca9b0c4271a514e073a55ce.png
     
  8. In Grafana click on "+ -> Import":
    20.png.63664aa075e25fc83087e05be0e50b94.png.e888eee5aa1e68ccdfa8042be734c83c.png
     
  9. Now we are going to import a preconfigured Dashboard for the AdGuard Exporter from Grafana.com (Source), to do this simply enter the ID (13330) from the Dasboard and click "Load":
    grafik.png.06dfe984e6312d3e18d14f8c049cbd51.png
     
  10. In the next screen rename the Dashboard to your liking, select "Prometheus" as datasource and click on "Import":
    grafik.png.ec0648643947e9d569aad2ecf4182da3.png
     
  11. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values, especiall at the gauges, since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    picture.png.153d89f0da65bf378f3745224b9fc785.thumb.png.8364c5c002cfa5e10bf93eb789b3ae05.png
    (Now you will notice that this warning: "Panel plugin not found: grafana-piechar-panel" appears on the Dasboard, to fix this follow the next steps)
     
  12. Go to your Docker page and click on Grafana and select "Console":
    39.png.480fbd464fb1790572e1abdec9efbfc6.png.b62e57b2f554cd81da65db4503324298.png
     

  13. In the next window enter the following 'grafana-cli plugins install grafana-piechart-panel' and press RETURN:
    40.png.26fb73f31a6ebb7d1e8d009e7b81c1a6.png.a1dfb9cac9a074020338faa0d68eac6b.png
     

  14. After that close the Console window and restart the Grafana Docker container:
    41.png.4c27febef332b244db87fc119a898789.png.d5f95ce3264e9c466129a48081f99e88.png
     

  15. Now go back to your AdGuard Dashboard within Grafana and you should now see that the Dasboard is fully loaded:
    adguard.thumb.png.4713b1cdd19d34b4ffc5aaf6cdfd0762.png
     

 

 

ATTENTION

Please note if you restart your AdGuard container the Exporter will stop and you have to manually start it from the plugin configuration page with the "START" button.

 

This also applies if you have CA Backup installed and the container is beeing backed up.

 

To workaround that you don't have to manually restart it after each CA Backup do the following steps:

 

  1. Go to Settings and click on the bottom on "Backup/Restore Appdata":
    grafik.png.0045d5a3871d1f5740fcca147981c1a1.png.582dbedccf2e876f677a127ec1b14493.png
     
  2. Confirm the Warning that pops up and scroll all the way down to the bottom and click on "Show Advanced Settings":
    grafik.png.9efa350bcd19143bc41507d2df57e09b.png.d59c5b973bf1cfaad23159e73456521a.png
     
  3. At AdGuard make sure that you click on the switch so that it shows "Don't Stop":
    grafik.png.4c47948344ebe19c063a7e121024f38a.png
     
  4. Scroll down to the bottom and click "Apply":
    grafik.png.15a5a572f5ca76bdf74d3581679ca1df.png.0be9918e02099855cc11b641e4e14bb6.png
  • Like 2
  • Thanks 1
Link to comment

Great work man! Thanks for DMing me about your projects. I know what I’m adding to the Ultimate UNRAID Dashboard (UUD) Version 1.7! 😂

 

 

@SpencerJ You see this yet? This might just be juicy enough to pull me out of retirement/hiatus and get the UUD 1.7 out. I’ll look into this in August. I’m getting married this month!

 

Edited by falconexe
  • Like 4
Link to comment

Great write-up!  I've set up Prometheus & Grafana before on a Pi.  This was some time ago and, at the time, there wasn't a way to import SMART stats into Prometheus.  I'm building an Unraid server soon and had ruled out Prometheus for this reason and was going to use Influxdb instead.  Is it still difficult/impossible to get SMART data into Prometheus?

Link to comment
54 minutes ago, SirCadian said:

Is it still difficult/impossible to get SMART data into Prometheus?

I have to look into this if tgere already someone made an exporter or not, can think of various difficults (drives spinning up when trying to read the data,...).

 

I will get back to you and let you know about my findings.

 

From what I've read so far, it should be possible.

You can always use InfluxDB with Promtheus in Grafana.

 

EDIT: Already found something will let you know how this is working and if it's even working...

Link to comment

Wow, thanks for the speedy response! 

 

I'm mainly looking for the temps and for:

0x05: Reallocated Sectors Count

0xC5: Current Pending Sector Count

0xC6: Uncorrectable Sector Count

 

I currently use CrystalDiskInfo on a headless Win10 machine that I use as a fileserver.  CDI checks those SMART metrics and alerts when a drive is starting to go bad.  It has been useful to help me gauge when is time to swap a drive out as it nears the end of its useful life.  I'm hoping to monitor for drives starting to go bad using prometheus/grafana.  It may be that there's a better way to do this in Unraid as it's more storage/NAS oriented.

Link to comment
1 hour ago, SirCadian said:

0x05: Reallocated Sectors Count

0xC5: Current Pending Sector Count

0xC6: Uncorrectable Sector Count

These values are read too but the dasboard is just a template, here is another one (I'm not really good at creating dashbaords but you can at least customize it or create one and if you want to share it I'm happy to put it here in the thread):

grafik.thumb.png.0a1e37337b85a65b98ed6667282f4b77.png

  • Thanks 1
Link to comment

Looking good.  I'll definitely play around with this once I've got my server up and running.  All the kit is sitting in a big pile behind me.  Just waiting on a case to be delivered before I build it and start playing around with Unraid.  I've been looking for a new tech project.  This is going to be fun. :)

  • Like 1
Link to comment

The Ultimate UNRAID Dashboard that I developed has all of this S.M.A.R.T disk info, but uses Telegraf. It’s nice to have both options. The UUD displays this in a “pretty” format. Let me know if you need a link to it. ich777 can also point you to it as he is aware of my work.

 

image.thumb.png.5456018986715170e65e676158193d6f.png


Edit: Here is the link:

 

Edited by falconexe
  • Like 1
  • Thanks 1
Link to comment
20 minutes ago, falconexe said:

ich777 can also point you to it as he is aware of my work.

Yes I am... :)

 

I want to keep everything in Prometheus if possible... :)

Trying to get the script for smart work reliably and then integrate it into the plugin system.

One thing I can tell for sure that this plugin for smartctl needs the node exporter installed and won't work without it but the integration to the node exporter will be handled by the smartctl plugin.

 

I know your Dashboards look really nice and I also want it... :D

But I simply haven't got the time to make Dasboards, Plugins, Dockers,... :D

My goal is simply to stick to Prometheus wherever I can (currently I only have Prometheus and Grafana installed).

I know you can't do all with Prometheus but at least I try... :P

 

Have to look into this when I got more time, eventually when I retire from my real job in about 30 years or so... :D

  • Like 1
Link to comment
43 minutes ago, Airwolf99 said:

Got this installed and going today, works great so far! Is there any way to add the connected UPS data to this so it can be seen in Grafana? Thanks!

Will look into this which kind of UPS do you have and how do you connect it to unRAID?

 

Have you installed NUT too?

Link to comment

HI, I currently have a APC brand UPS setup, but also use Cyberpower. It is plugged in via USB and uses the default UPS settings under the settings tab (screenshots attached). Being able to see the Line Voltage, Time left, etc.. would be great. Let me know if you need any other info, Thanks for the quick reply!

988796943_UPSSettings(2).thumb.jpg.f72f8967047af597a002399bd8d2ba0a.jpg

 

Current Dashboard Display.png

Settings Tab.png

UPS Settings.png

Link to comment

So I was going to try switch over from UUD to this, deleted all the old stuff including the Grafana appdata folders etc.  When I configure the .yaml then check Prometheus I have the localhost entry as up but the IP:9100 is down (404) and I can't figure out how I've broken it.  Point me in the right direction?

Edited by boosting1bar
Link to comment
6 hours ago, Airwolf99 said:

APC brand UPS setup

I have to look into this, can take a while since I don't own a UPS.

 

5 hours ago, shadowbert said:

hardcoded to 80.

No it isn't, you can change it by editing the file /boot/config/plugins/prometheus_pihole_exporter/settings.cfg on your USB boot device and edit the port there.

EDIT: I will update the configruation page from the plugin so that the port is displayed/changable from there in one of the next updates. :)

 

4 hours ago, unw1red said:

I am running two instances of Pi-Hole on two external servers.

Are you running the two instances with keepalived?

 

4 hours ago, unw1red said:

Can you monitor both?

Theoretically it's possible but you have to put in a line in your go file so that you start a second instance of the exporter on another port.

 

4 hours ago, unw1red said:

The one I have setup is not populating any data.

Does it say on the plugin page that it's running and in the Prometheus WebGUI that it's up?

 

3 hours ago, boosting1bar said:

When I configure the .yaml then check Prometheus I have the localhost entry as up but the IP:9100 is down (404)

Do you run your containers in a custom network on br0?

If yes you need to enable Allow Host Access in the Docker settings.

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.