Help integrating Grafana system stats into Homarr's iframes.
Hi team.
My apologies for not posting in here first. I saw the chat emoji and thought this was a voice channel.
I am having the hardest time getting Grafana to integrate into Homarr's iframes. With the gracious help from Maincraft I was able to turn on Grafana's embedding variable, as well as set my dashboard to public. However I'm using the Prometheus
1860
template in Grafana which uses variables and I was told that Grafana can't use variables on public dahsboards?? I changed the variables I saw (which was just $datasource in which i just selected the Prometheus data source) but even then I can't seem to get Grafana to pass any metrics into Homarr. I can get the entire dashboard to load with UI elements in an iframe, there's just no data for those elements. And I still can't get a single UI element from Grafana to render anything in an iframe in Homarr. The entire dashboard will render but I can't seem to get just an individual element to render out when I try to just share the embed link if a single UI element (which is what I'm trying to achieve here). ANY help and guidance would be greatly appreciated.
I've seen a lot of user posts showing off their dashboards with these integrations but there isn't really any documentation on how to get it all working. And I 100% know this is a Grafana issue not Homarr but I'm not really sure where else to ask for help as those users who posted their dashboards got it working, maybe they can share some knowledge on how others can achieve the same results as well?Solution:Jump to solution
I've seen that you posted on Grafana Forums. To reiterate on my previous answer; we are not responsible for Grafana and do not provide support for it. I've explained you that you need to enable embedding in Grafana in this message extensively: https://discord.com/channels/972958686051962910/972958689155764326/1364667440159654041
I've sent you the link on how to enable embedding (https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/?pg=blog#allow_embedding) and how to configure Grafana with environment variables (https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#override-configuration-with-environment-variables) which isn't part of our support anyway, but I explained it to you to help you as much as we can.
I've also explained to you in #🦞・general , that you must allow the anonymous user group to access the boards in your configuration or make the board public to let them view the panels....
9 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
OS: Unraid
Homarr Version: 1.17.0
I have Prometheus with the Node Exporter Plugin installed in Unraid. That is getting sent to Grafana in the same server but different docker container, which is then being sent to Homarr on the same server in a different docker container.
Homarr Docker Config:





Pastebin
text error warn system array login (node:21) [DEP0040] Deprec...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
bump
Solution
I've seen that you posted on Grafana Forums. To reiterate on my previous answer; we are not responsible for Grafana and do not provide support for it. I've explained you that you need to enable embedding in Grafana in this message extensively: https://discord.com/channels/972958686051962910/972958689155764326/1364667440159654041
I've sent you the link on how to enable embedding (https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/?pg=blog#allow_embedding) and how to configure Grafana with environment variables (https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#override-configuration-with-environment-variables) which isn't part of our support anyway, but I explained it to you to help you as much as we can.
I've also explained to you in #🦞・general , that you must allow the anonymous user group to access the boards in your configuration or make the board public to let them view the panels.
The problems you're experiencing (no data shown, variables in Grafana, ...) is in no way related to Homarr and I will not comment further on this issue. Please understand that as an open source project, we neither have enough time and money or knowledge about other tools and cannot help you with them. You've already reached out on our Discord, Reddit and now also on the Grafana Forms - I will therefore close the requests here and on Reddit, so you can reach out to the Grafana team for further support.
On a side note, I strongly recommend you to familiarize yourself with the concepts of Grafana and read some beginner guides on it: https://grafana.com/docs/grafana/latest/getting-started/
https://www.youtube.com/watch?v=lILY8eSspEo
They also have an official channel, where you can learn it: https://www.youtube.com/@Grafana
Since your original Homarr related question has been answered and resolved, I will close this thread now. Please reach out to us again, if you need assistance with Homarr itself.
Thanks for your understanding.
Thanks for getting back and for all the help. I completely understand your guy's position in all of this. After spending 4+ days with no luck I'm going to move on as I don't have the time to waste on buiding out a dashboard. In the future do you think Homarr would have any API integrations with Grafana or other apps, or would Homarr have a natieve way to bring system stats into it's enviroment? THAT is what I'm looking for in a dashboard app. Thanks again and I hope you all have a great weekend. Cheers.
Thanks for the feedback. I understand your frustration - you can also bring this concern to the Grafana team if the documentation was unclear or if something can be improved.
A native widget for this is hard, because there are thousands of graph visualizations possible in Grafana and we can't implement all of them.
Yeah, I opened a ticket in their community and I think that is the proper space for troubleshooting as Homarr is just receiving whatever Grafana is sending it.
With API integration, there should be a way to select from a list of what you want and what you don't. As an end user (and a UI dev for a completely different industry) that would be super nifty. Just drop in a "Grafana widget" and then after the API handshake is setup a dropdown list could populate and you can pick whatever metric you like for said instance and then rinse and repeat until happy. Maybe something to look into (or not lol), just a bucket list item for me ❤️
Thanks again for the help and I hope you have an amazing rest of your day.