prometheus-sabnzbd-exporter: init at 0.1.70

This commit is contained in:
Fugi 2023-08-13 04:07:32 +02:00
parent 4d2624b258
commit c2d5ed9744
No known key found for this signature in database
GPG Key ID: 4472A20091BFA792
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "sabnzbd_exporter";
version = "0.1.70";
format = "other";
src = fetchFromGitHub {
owner = "msroest";
repo = pname;
rev = version;
hash = "sha256-FkZAWIIlGX2VxRL3WS5J9lBgToQGbEQUqvf0xcdvynk=";
};
propagatedBuildInputs = with python3Packages; [ prometheus-client requests ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp sabnzbd_exporter.py $out/bin/
mkdir -p $out/share/${pname}
cp examples/* $out/share/${pname}/
runHook postInstall
'';
meta = with lib; {
description = "Prometheus exporter for sabnzbd";
homepage = "https://github.com/msroest/sabnzbd_exporter";
license = licenses.mit;
maintainers = with maintainers; [ fugi ];
platforms = platforms.all;
mainProgram = "sabnzbd_exporter.py";
};
}

View File

@ -27006,6 +27006,7 @@ with pkgs;
prometheus-redis-exporter = callPackage ../servers/monitoring/prometheus/redis-exporter.nix { };
prometheus-rabbitmq-exporter = callPackage ../servers/monitoring/prometheus/rabbitmq-exporter.nix { };
prometheus-rtl_433-exporter = callPackage ../servers/monitoring/prometheus/rtl_433-exporter.nix { };
prometheus-sabnzbd-exporter = callPackage ../servers/monitoring/prometheus/sabnzbd-exporter.nix { };
prometheus-sachet = callPackage ../servers/monitoring/prometheus/sachet.nix { };
prometheus-script-exporter = callPackage ../servers/monitoring/prometheus/script-exporter.nix { };
prometheus-shelly-exporter = callPackage ../servers/monitoring/prometheus/shelly-exporter.nix { };