prometheus-rtl_433-exporter: init at 641a1f5

This commit is contained in:
Alexandre Macabies 2020-08-28 03:13:25 +02:00
parent 86fb21cde5
commit af28dac3ac
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib, buildGoModule, fetchFromGitHub, bash, nixosTests }:
buildGoModule rec {
pname = "rtl_433-exporter";
version = "0.1";
src = fetchFromGitHub {
owner = "mhansen";
repo = "rtl_433_prometheus";
rev = "v${version}";
sha256 = "1998gvfa5310bxhi6kfv8bn99369dxph3pwrpp335997b25lc2w2";
};
postPatch = "substituteInPlace rtl_433_prometheus.go --replace /bin/bash ${bash}/bin/bash";
vendorSha256 = "03mnmzq72844hzyw7iq5g4gm1ihpqkg4i9dgj2yln1ghwk843hq6";
passthru.tests = { inherit (nixosTests.prometheus-exporters) rtl_433; };
meta = with lib; {
description = "Prometheus time-series DB exporter for rtl_433 433MHz radio packet decoder";
homepage = "https://github.com/mhansen/rtl_433_prometheus";
license = licenses.mit;
maintainers = with maintainers; [ zopieux ];
};
}

View File

@ -17012,6 +17012,7 @@ in
prometheus-pushgateway = callPackage ../servers/monitoring/prometheus/pushgateway.nix { };
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-snmp-exporter = callPackage ../servers/monitoring/prometheus/snmp-exporter.nix { };
prometheus-tor-exporter = callPackage ../servers/monitoring/prometheus/tor-exporter.nix { };
prometheus-statsd-exporter = callPackage ../servers/monitoring/prometheus/statsd-exporter.nix { };