From e11b9a851851bb47109545093e3accdbcab76859 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Jun 2025 21:50:54 +0530 Subject: Add grafana+prometheus + embed into dashboard --- modules/dashboard/dashboard-template.nix | 17 ++++++++++++++++- modules/dashboard/default.nix | 14 ++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) (limited to 'modules/dashboard') 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 +
+ +
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"; + } ]; }; } -- cgit v1.3.1