pkgs/node-exporter-dashboard: init

This commit is contained in:
Felix Buehler 2023-04-07 22:38:53 +02:00
parent e25350683d
commit e4db4699fd
2 changed files with 29 additions and 0 deletions

View file

@ -1,4 +1,5 @@
final: prev:
{
homer = final.callPackage ./homer { };
node-exporter-dashboard = final.callPackage ./node-exporter-dashboard { };
}

View file

@ -0,0 +1,28 @@
{ stdenv
, fetchFromGitHub
, lib
}:
stdenv.mkDerivation {
version = "unstable-2023-03-30";
pname = "grafana-dashboard-node-exporter";
dontBuild = true;
src = fetchFromGitHub {
owner = "rfrail3";
repo = "grafana-dashboards";
rev = "1e67d6fc6adf18c721d2eb85a39fd270cfcb7b10";
hash = "sha256-S3+RtUId+f7MdoakcZkhw069Q8IupEWJLSwlNPzxZvM=";
};
installPhase = ''
mkdir -p $out
cp prometheus/node-exporter-full.json $out/node-exporter-full.json
'';
meta = {
description = "grafana dashboard for node exporter";
homepage = "https://github.com/rfrail3/grafana-dashboards";
license = lib.licenses.lgpl3Only;
};
}