nixpkgs/pkgs/servers/monitoring/telegraf/default.nix

34 lines
863 B
Nix
Raw Normal View History

2021-12-08 05:16:59 +01:00
{ lib, buildGo117Module, fetchFromGitHub, nixosTests }:
2021-12-08 05:16:59 +01:00
buildGo117Module rec {
pname = "telegraf";
2021-12-08 05:16:59 +01:00
version = "1.20.4";
excludedPackages = "test";
2019-01-21 12:28:32 +01:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
2020-03-27 08:18:52 +01:00
rev = "v${version}";
2021-12-08 05:16:59 +01:00
sha256 = "sha256-AK2KCbwFHeryqdK7iYtKEaP8JYINdX1i42/EHCAGkFk=";
};
2021-12-08 05:16:59 +01:00
vendorSha256 = "sha256-35jcieU/EdJ3d4WfYhwXpDNZRrS+DQsWZYp2EoxpKU4";
2021-07-25 11:33:21 +02:00
proxyVendor = true;
2021-08-21 10:23:48 +02:00
ldflags = [
"-w" "-s" "-X main.version=${version}"
];
2017-10-01 11:19:39 +02:00
2020-01-28 15:08:38 +01:00
passthru.tests = { inherit (nixosTests) telegraf; };
meta = with lib; {
description = "The plugin-driven server agent for collecting & reporting metrics";
license = licenses.mit;
2020-03-27 08:18:52 +01:00
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
maintainers = with maintainers; [ mic92 roblabla timstott ];
};
}