diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/unifi-exporter')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix b/pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix new file mode 100644 index 00000000000..b9971ab7228 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix @@ -0,0 +1,24 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + pname = "unifi-exporter"; + version = "0.4.0+git1"; + rev = "9a4e69fdea91dd0033bda4842998d751b40a6130"; + + goPackagePath = "github.com/mdlayher/unifi_exporter"; + + src= fetchFromGitHub { + inherit rev; + owner = "mdlayher"; + repo = "unifi_exporter"; + sha256 = "08zqvwvdqnc301f8jfh7bdvc138szw6xszx884b2v8w2x38w3rmn"; + }; + + meta = with lib; { + description = "Prometheus exporter that exposes metrics from a Ubiquiti UniFi Controller and UniFi devices"; + homepage = "https://github.com/mdlayher/unifi_exporter"; + license = licenses.mit; + maintainers = with maintainers; [ bachp globin ]; + platforms = platforms.unix; + }; +} |