Merge pull request #157344 from numinit/ioztat

ioztat: init at 1.1.0
This commit is contained in:
0x4A6F 2022-02-21 02:43:17 +01:00 committed by GitHub
commit afb9a57ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -6707,6 +6707,8 @@ with pkgs;
iouyap = callPackage ../tools/networking/iouyap { };
ioztat = callPackage ../tools/filesystems/ioztat { };
ip2location = callPackage ../tools/networking/ip2location { };
ip2unix = callPackage ../tools/networking/ip2unix { };