summary refs log tree commit diff
path: root/pkgs/tools/filesystems
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-02-21 06:01:54 +0000
committerGitHub <noreply@github.com>2022-02-21 06:01:54 +0000
commit5e0b594cc3905fd58d6350a4e3595868e80811af (patch)
tree63d4cc74d68edfa733f2319064885cf84386a4c1 /pkgs/tools/filesystems
parent7e1f7b8e1fc882dd560aca61d1d9d489cff4202f (diff)
parent18a1f292c4fecdbd628efe13cebba5f3864b6730 (diff)
downloadnixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar.gz
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar.bz2
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar.lz
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar.xz
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.tar.zst
nixpkgs-5e0b594cc3905fd58d6350a4e3595868e80811af.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r--pkgs/tools/filesystems/ioztat/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/ioztat/default.nix b/pkgs/tools/filesystems/ioztat/default.nix
new file mode 100644
index 00000000000..e87b96482c6
--- /dev/null
+++ b/pkgs/tools/filesystems/ioztat/default.nix
@@ -0,0 +1,55 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, installShellFiles
+, python3
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ioztat";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "jimsalterjrs";
+    repo = "ioztat";
+    rev = "v${version}";
+    sha256 = "wDRcFlXmXTc1J9MQZqILfPp5jUhX6wW4nOnqspIWVjQ=";
+  };
+
+  nativeBuildInputs = [ installShellFiles ];
+  buildInputs = [ python3 ];
+
+  prePatch = ''
+    patchShebangs .
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp ioztat $out/bin
+
+    if [ -f ioztat.8 ]; then
+      installManPage ioztat.8
+    fi
+  '';
+
+  meta = with lib; {
+    inherit version;
+    inherit (src.meta) homepage;
+    description = "A storage load analysis tool for OpenZFS";
+    longDescription = ''
+      ioztat is a storage load analysis tool for OpenZFS. It provides
+      iostat-like statistics at an individual dataset/zvol level.
+
+      The statistics offered are read and write operations per second, read and
+      write throughput per second, and the average size of read and write
+      operations issued in the current reporting interval. Viewing these
+      statistics at the individual dataset level allows system administrators
+      to identify storage "hot spots" in larger multi-tenant
+      systems -- particularly those with many VMs or containers operating
+      essentially independent workloads.
+    '';
+    license = licenses.bsd2;
+    platforms = with platforms; linux ++ freebsd;
+    maintainers = with maintainers; [ numinit ];
+  };
+}