nixos-config/pkgs/grafana-dashboards/node-exporter.nix

38 lines
784 B
Nix
Raw Permalink Normal View History

2022-04-10 11:54:58 +02:00
{
stdenv,
fetchFromGitHub,
lib,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
licenses
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
version = "7d61c79619e5749e629758ecd96748c010028120";
in
2022-04-10 11:54:58 +02:00
stdenv.mkDerivation {
version = "master-${version}";
pname = "grafana-dashboard-node-exporter";
2022-04-10 11:54:58 +02:00
dontBuild = true;
2022-04-10 11:54:58 +02:00
src = fetchFromGitHub {
owner = "rfrail3";
repo = "grafana-dashboards";
rev = version;
sha256 = "sha256:1z6i76jdiw3jjigbmbqvyi8kyj4ngw0y73fv9yksr2ncjfqlhhv6";
};
2022-04-10 11:54:58 +02:00
installPhase = ''
mkdir -p $out
cp prometheus/node-exporter-full.json $out/node-exporter-full.json
'';
2022-04-10 11:54:58 +02:00
meta = {
description = "grafana dashboard for node exporter";
homepage = "https://github.com/rfrail3/grafana-dashboards";
license = licenses.lgpl3Only;
};
}