diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-13 21:50:54 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-13 21:50:54 +0530 |
| commit | e11b9a851851bb47109545093e3accdbcab76859 (patch) | |
| tree | e733232829ccca32d6ff3cfc88e4794222448676 /modules/dashboard | |
| parent | 6df186662a37b17015959bf0d6b456ab282b1826 (diff) | |
| download | homeserver-nixos-config-e11b9a851851bb47109545093e3accdbcab76859.tar.gz homeserver-nixos-config-e11b9a851851bb47109545093e3accdbcab76859.zip | |
Add grafana+prometheus + embed into dashboard
Diffstat (limited to 'modules/dashboard')
| -rw-r--r-- | modules/dashboard/dashboard-template.nix | 17 | ||||
| -rw-r--r-- | modules/dashboard/default.nix | 14 |
2 files changed, 30 insertions, 1 deletions
diff --git a/modules/dashboard/dashboard-template.nix b/modules/dashboard/dashboard-template.nix index 5a99e20..43812a0 100644 --- a/modules/dashboard/dashboard-template.nix +++ b/modules/dashboard/dashboard-template.nix @@ -52,7 +52,7 @@ let grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding: 0 1rem; width: 100%; - margin: 1rem auto; + margin: 1rem auto 2rem; max-width: 1200px } .card { @@ -93,6 +93,18 @@ let margin: 0; border: 0; } + .stats-container { + padding: 1rem; + border-top: 1px solid #1a1824; + } + .stats-container iframe { + width: 100%; + display: block; + min-height: 1100px; + height: 100%; + border: 2px solid #1a1824; + border-radius: 5px; + } ''; headerHTML = '' @@ -115,6 +127,9 @@ in <section class="links-container"> ${concatStringsSep "" (map linkHTML links)} </section> + <section class="stats-container"> + <iframe src="http://grafana.local/public-dashboards/4d3d386f6eb9475bb202fe793c0a72c3"></iframe> + </section> <script>${script}</script> </body> </html> diff --git a/modules/dashboard/default.nix b/modules/dashboard/default.nix index 9e434c2..42583dd 100644 --- a/modules/dashboard/default.nix +++ b/modules/dashboard/default.nix @@ -47,6 +47,20 @@ in altUrl = "http://${settings.network.host}:${toString ports.syncthing}"; color = "#0891d1"; } + { + title = "Ntfy-sh"; + key = "n"; + url = "http://ntfy.local"; + altUrl = "http://${settings.network.host}:${toString ports.ntfy}"; + color = "#2dc9b5"; + } + { + title = "Grafana"; + key = "g"; + url = "http://grafana.local"; + altUrl = "http://${settings.network.host}:${toString ports.grafana}"; + color = "#f05a28"; + } ]; }; } |
