feat: add node explorer full dashboard to grafana

This commit is contained in:
Jet Pham 2026-02-22 17:51:48 -08:00
parent afd3360582
commit 6c805737f1
No known key found for this signature in database

View file

@ -34,5 +34,28 @@
secret_key = config.mySecrets.grafanaSecret;
};
};
provision = {
enable = true;
datasources.settings.datasources = [
{
name = "Prometheus";
type = "prometheus";
access = "proxy";
url = "http://127.0.0.1:9090";
isDefault = true;
}
];
dashboards.settings.providers = [
{
name = "Node Exporter Full";
options.path = "/etc/grafana-dashboards";
}
];
};
};
environment.etc."grafana-dashboards/node-exporter-full.json".source = pkgs.fetchurl {
url = "https://grafana.com/api/dashboards/1860/revisions/37/download";
sha256 = "0qza4j8lywrj08bqbww52dgh2p2b9rkhq5p313g72i57lrlkacfl";
};
}