about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/systemd-exporter.nix
blob: e0f93332547ee001cc9959682045c32118b1d7c6 (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, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
  pname = "systemd_exporter";
  version = "0.5.0";

  vendorHash = "sha256-XkwBhj2M1poirPkWzS71NbRTshc8dTKwaHoDfFxpykU=";

  src = fetchFromGitHub {
    owner = "povilasv";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-q6rnD8JCtB1zTkUfZt6f2Uyo91uFi3HYI7WFlZdzpBM=";
  };

  passthru.tests = { inherit (nixosTests.prometheus-exporters) systemd; };

  meta = with lib; {
    description = "Exporter for systemd unit metrics";
    homepage = "https://github.com/povilasv/systemd_exporter";
    license = licenses.asl20;
    maintainers = with maintainers; [ chkno ];
  };
}