[Plugin] Prometheus unRAID Plugins


Recommended Posts

30 minutes ago, Owerrride said:

Yes, server online and can speak with github...

Sorry but your server seems to have some kind of issue, are you sure that the server time is set correctly?

 

As you can see in your screenshot above, you have a network error, are you sure you don't have any adblocking software on your network or similar that prevens your server from talking to github?

  • Like 1
Link to comment
1 hour ago, ich777 said:

No issues over here:

grafik.thumb.png.eeb08d570019a950e29bed0b47c1b9dc.png

 

As it says, there must be some kind of network failure. Are you sure your server is able to reach GitHub since there are all of the files located.

SOLVED
Everything turned out to be much simpler, I was inattentive, and port 9000 was busy. Sorry to bother you 😃

  • Like 1
Link to comment
  • 1 month later...

I have two Unraid servers, A & B.

Got Grafana, prometheus & node_exporter on server A. What do I need on server B?

 

After installing Prometheus-PiHole-Exporter, I get an icon in Settings. Is there any UI for node_exporter? Or settings file to adjust ports?

Link to comment
On 1/1/2024 at 3:07 AM, reboot81 said:

Is there any UI for node_exporter?

No, the node_exporter exports all metrics from your Unraid server as described in the description.

 

On 1/1/2024 at 3:07 AM, reboot81 said:

Or settings file to adjust ports?

What ports do you need to adjust? Do you have any port conflicts?

 

On 1/1/2024 at 3:07 AM, reboot81 said:

What do I need on server B?

Do you want to import the metrics on server A?

 

Usually you just have to add the IP & Port from Server B Exporter plugins in Prometheus on Server A.

Link to comment
  • 2 months later...
On 7/3/2021 at 4:25 PM, ich777 said:

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. In the following windows click on "Upload JSON file" and upload the nvidia-smi.json file: nvidia-smi.json
    46.png.f0fa032d792caa46215715b6b39004b0.png


Hello ! The JSON file is outdated, on dashboard, it says : "This panel requires Angular (deprecated)"

Is there a updated files for ? Thank you for the job anyway !

Edited by warzonefury
Link to comment
  • 2 weeks later...

I can not get the Pi-hole Exporter to run. Its configured but it will not start. Pi hole was set to bridge, but i tried br0 and another custom network i have but nothing lets it connect not sure what i should do to proceed

Screenshot 2024-03-24 200304.png

Edited by T_Matz
added picture
Link to comment
4 hours ago, T_Matz said:

I can not get the Pi-hole Exporter to run.

Is PiHole running on Unraid itself?

 

I have now tried it and it is working fine over here:

grafik.thumb.png.e9a518f2e02c663a812fa794c8ff0d67.png

 

I only can imagine that Unraid is not able to communicate with your PiHole.

Can you ping the IP address from PiHole from a Unraid Terminal?

Link to comment

 

15 hours ago, ich777 said:

Is PiHole running on Unraid itself?

 

I have now tried it and it is working fine over here:

grafik.thumb.png.e9a518f2e02c663a812fa794c8ff0d67.png

 

I only can imagine that Unraid is not able to communicate with your PiHole.

Can you ping the IP address from PiHole from a Unraid Terminal?

 You are correct I cant ping Pihole. I thought everything was working correctly because it is blocking traffic but I cant ping it from any computer on the network.

 

 

Edit:

I was able to correct the issue with not being able to ping Pihole. I have the exporter up and running but it wont connect to prometheus now. I still get a connect:connection refused. 

 

 

Edited by T_Matz
update
Link to comment
On 9/23/2021 at 11:03 AM, ich777 said:

Prometheus Fritzbox Exporter

 

  1. Download and install the Prometheus Fritzbox Exporter plugin from the CA App:
    grafik.png.81d0b5d47e26a5f6f25aaf9287c6d6d0.png
     
  2. Log in to your Fritzbox and go to "System -> FRITZ!Box-Benutzer":
    1.png.85fd439e28dc83e8a944bf78d71db52b.png
     
  3. Click on "Benutzer hinzufügen":
    2.thumb.png.0c19f57b0c9cc2cb8966eb584a3479db.png
     
  4. Create a new user with a password for the exporter (in this example "grafana") and tick the following check boxes ("FRITZ!Box Einstellungen", "Sprachnachrichten, Faxnachrichten, FRITZ!App Fon und Anrufliste" & "Smart Home"):
    3.thumb.png.9558ce3ab28c1fed0b1338a220e8fa84.png
     
  5. Go to "Heimnetz -> Netzwerk -> Netzwerkeinstellungen" and select "Statusinformationen über UPnP übertragen":
    4.thumb.png.bff9cef511ed651cf87662f10cca5374.png
     
  6. Go to the plugin settings by clicking on "Settings -> Fritzbox Exporter" (at the bottom of the Settings page) :
    6.png.252254d95c43d25e5b4c4e47f931857c.png
     
  7. Enter the username and password that you've created in Step 3 for the exporter in your Fritzbox and click on "Confirm & Start":
    grafik.thumb.png.c73190510e94ac9b64ee9801a697393b.png
     
  8. After that you should see in the right top corner that the Exporter is running and details about it:
    grafik.thumb.png.056ce392dc0b9f1ea66514266236e15f.png
     
  9. Open up the prometheus.yml (Step 4 + 5 from the first post), add a line with '- targets: ["YOURSERVERIP:9042"]' (please change "YOURSERVERIP" to your Server IP), save and close the file:
    grafik.png.a995d2f4c920bda6e1bb170be31259fe.png
     
  10. Go to the Docker page and restart Prometheus:
  11. grafik.png.5ce625ba0089855ec275263b094e4a1a.png
     
  12. Open up the Grafana WebUI:
    grafik.png.44941fa8fff8d2a61d93b0b7c7e18d23.png
     
  13. In Grafana click on "+ -> Import":
    grafik.png.74e5ee056c9b2b36be0799d9433d6088.png
     
  14. Now we are going to import a preconfigured Dashboard for the Fritzbox Exporter from Grafana.com (Source), to do this simply enter the ID (12579) from the Dasboard and click "Load":
    grafik.png.cb2ed3299ec9ce6687c1d9ac6c45323c.png
     
  15. In the next screen rename the Dashboard to your liking, select "Prometheus" as datasource and click on "Import":
    grafik.png.9f28b30cfa6dff242fd29d23d2703f00.png
     
  16. Now you should be greeted with something like this (please keep in mind that the Dashboard can display N/A at some values, especially at the gauges, since there is not enough data available, wait a few minutes and you will see that the values are filled in):
    5.thumb.png.33b64fb87bc29df372ba6812383c8d16.png

 

Great work.

 

Is there a way to choose the fritzbox IP?

Link to comment

i did use it a while ago ... and yes, but i used it manually to define my fritz devices ...

 

so thi splugin was basically just the install, i ran the plugin manually from terminal (script),

 

The exporter can directly be run from a shell. Set the environment vars or config file as described in the configuration section of this README and run python3 -m fritzbox_exporter [--config /path/to/config/file.yaml] from the code directory.

 

https://fritz-exporter.readthedocs.io/en/latest/running.html

  • Like 1
Link to comment
7 hours ago, DragonZeal said:

Is there a way to choose the fritzbox IP?

you have to edit the config file on your flash drive: boot/config/plugins/prometheus_fritzbox_exporter/settings.cfg

 

fritz_username=FITZBOX-USER
fritz_password=FRITZBOX-USER-PW
fritz_additional= -gateway-url="http://YOUR-FRITZBOX-IP:49000" -gateway-luaurl="http://YOUR-FRITZBOX-IP"
exporter_address=0.0.0.0:9042
exporter_metrics_file=metrics.json
exporter_luametrics_file=metrics-lua.json

 

than it will looks like this:

image.thumb.png.79e7126b609b7581812dd1daaef14f23.png

192.168.0.1 is the IP of my fritzbox.

  • Like 2
Link to comment
13 hours ago, sonic6 said:

you have to edit the config file on your flash drive: boot/config/plugins/prometheus_fritzbox_exporter/settings.cfg

 

fritz_username=FITZBOX-USER
fritz_password=FRITZBOX-USER-PW
fritz_additional= -gateway-url="http://YOUR-FRITZBOX-IP:49000" -gateway-luaurl="http://YOUR-FRITZBOX-IP"
exporter_address=0.0.0.0:9042
exporter_metrics_file=metrics.json
exporter_luametrics_file=metrics-lua.json

 

than it will looks like this:

image.thumb.png.79e7126b609b7581812dd1daaef14f23.png

192.168.0.1 is the IP of my fritzbox.

This worked like a charm thank you.

 

19 hours ago, ich777 said:

The Fritzbox should be discovered automatically IIRC, sorry I don't have a Fritzbox, maybe @sonic6 or @alturismo can help here a bit.

Using my Fritzbox as Internet Gateway with LTE backup only. Behind is a TP Link Omada ER605v2. So the discovery doesn't work because the Fritbox is on another subnet.

  • Like 2
Link to comment

I see in prometheus 

"Get "http://myIP:9100/metrics": dial tcp myIP:9100: connect: no route to host"

Bu I can open myIP:9100 and see all information:

# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 2.7502e-05
go_gc_duration_seconds{quantile="0.25"} 3.3061e-05
go_gc_duration_seconds{quantile="0.5"} 3.9764e-05
go_gc_duration_seconds{quantile="0.75"} 4.5858e-05
go_gc_duration_seconds{quantile="1"} 6.8148e-05
go_gc_duration_seconds_sum 0.001682561
go_gc_duration_seconds_count 41
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 7
......

Is it some issue in Prometheus Node Exporter plugin ?

Link to comment
  • 2 weeks later...
47 minutes ago, MatuScien said:

I knew I needed to post some images... :P

The output is correct, can you try to restart the Docker service, it seems that Host Access is not working properly.

You can easily try that by opening up a container terminal (from Grafana or Prometheus) and try to ping Unraid.

Link to comment
2 hours ago, ich777 said:

You can easily try that by opening up a container terminal (from Grafana or Prometheus) and try to ping Unraid.


I get ping from Grafana, but from Prometheus I get this message:

 

image.png.60a31b82dc222271a6a15e2dab5cac73.png

Edited by MatuScien
Error
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.