-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SHOWCASE] Dipan's Dash #777
Comments
Thank you :) Awesome work on this project. |
Hi, @dipanghosh Will you share config.yml for this state of the art? |
Hey @rankokrneta , Yes, but you should know that this dashboard heavily relies on a tech stack involving InfluxDB and Grafana. The graphs are merely being imported from Grafana. If you are have grafana set up already, and are interested how to integrate that into Dashy, then I can help. |
@dipanghosh |
Hey @dipanghosh, I love your Dashboard and I'm Currently trying to recreate it. How did you do the Uptime-Kuma widget? |
@rankokrneta Thanks!! The awesome work by @Lissy93, and a whole bunch of other awesome opensource projects has allowed me to create this. Thanks goes to them. If you need any particular help setting it up, just ping me here. @lolgufdHD Pretty much all the graph widgets on here are using Grafana using iframe, and the uptime kuma widget is also using iframe. Here is the relevant configuration. Let me know if this helps. - name: Uptime-Kuma
widgets:
- type: iframe
useProxy: true
options:
url: https://<url_to_uptimekuma>
frameHeight: 500
id: 0_1071_iframe
displayData:
sortBy: default
rows: 1
cols: 1
collapsed: false
hideForGuests: false |
@dipanghosh For more Context, a Cloudflare tunnel is pointing to the Grafana and Uptime Kuma app in Truenas. I tried googling said issue, but can't seem to find anything helpful. |
Oh yes. By default these services do not allow embedding. This is true for Grafana and also for Uptime Kuma. You need to change a setting for that. For Grafana, you need to set GF_SECURITY_ALLOW_EMBEDDING: true and the same applies for Uptime Kuma as well. The relevant setting there is UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN: 1 Now for the TrueNAS app, I do not know where to set these settings. However, it should be possible by editing the relevant settings file, such as grafana.ini. Hope this helps. Dunno how I found these in the first place, but I do remember hunting for the settings. Cheers! |
@dipanghosh |
@lolgufdHD There are two important things what needs to be done in order show grafana graphs in an iframe. First: You need to tell grafana, that it is okay to be embed into other websites which you have already done. Second: You need to figure out the URL parameters to set for the embedding to look nice. I will paste the dashy config I am using below, just change the initial part to point it to your server. For the CPU usage, I am using: - name: CPU Usage
widgets:
- type: iframe
useProxy: true
options:
url: >-
https://[your_grafana_server]/d/[ID_of_the_dashboard]/new-dashboard?orgId=1&viewPanel=4&kiosk&refresh=5s
frameHeight: 500
id: 0_765_iframe Notice the URL. Notice the paramaters passes after the question mark. Those are important. Now, go to grafana and pick a graph. Select share from the dropdown menu. Then, copy the URL from there, but replace everything after the question mark like above. This should result in an embedded grafana graph that autoupdates every 5 seconds. Let me know how this goes. |
@dipanghosh
|
First ensure you are able to visit the URL you are embedding, and that it works correctly. If both of those pass, then you should have no issues. BTW, have you restarted the grafana service after changing the settings? |
Okay, I will try that. Yes, I did restart Grafana, but I suspect that maybe Cloudflare is blocking the embed. |
@dipanghosh |
@dipanghosh How can I make it look like yours? Did you use the statuspage as an embed? |
@dipanghosh |
Elementary, dear Watson. .overall-status {
display: none;
} Gotta target the right class, not the class that is applied to all the monitor elements as well. |
Ahhh thank you |
Dear @dipanghosh,
|
Hey @fbellati Yes, use CSS. the following CSS hides the title (and logo if you have it). .mb-4.title-flex{
display: none;
} The two buttons... well you can hide them with css, but that may cause you problems as you will not able to modify the status page anymore (because the buttons will be gone.) You can unhide them by using the DevTools, but depends if you are comfortable with that. The alternative here is to log out of Uptime Kuma once you are done with editing and you like the statuspage. Remeber status pages are public, and if you are not logged in, those buttons will no longer show up. I hope that helps you out. |
Really fast answer! I appreciate the help! @lolgufdHD and @dipanghosh.
|
Glad to Help :) |
No worries. I am glad people have such an interest in the Dashboard. |
Awesome theme for dashy <3, Can you share your Config & Style? I already have grafana and Influxdb working. :-) |
Title
Dipan's Dashboard
Screenshot
Would you like your name/ username included?
Yes
Link to your Website/ Profile/ Twitter (optional)
https://dipan.de
Description (Optional)
With the option of embedding iframes, it becomes possible to combine and conquer. I have set up Dashy to include graphs from grafana, and set them so that they update automatically. I also have uptime monitors from uptime Kuma, panels from homeasistant are also possible to be included.
Dashy is awesome!
The text was updated successfully, but these errors were encountered: