HomarrH
Homarr10mo ago
11 replies
TURD FERGUSON

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
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.
Was this page helpful?