summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix
blob: b9971ab7228024837ebb6650409b59e1eaa3ebf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
  };
}