2022-02-04 12:16:47 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-09-08 14:30:20 +01:00
|
|
|
|
2022-02-04 12:16:47 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "telegraf";
|
2022-04-10 00:19:29 +01:00
|
|
|
version = "1.22.1";
|
2016-09-08 14:30:20 +01:00
|
|
|
|
|
|
|
excludedPackages = "test";
|
|
|
|
|
2019-01-21 11:28:32 +00:00
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
|
2016-09-08 14:30:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "telegraf";
|
2020-03-27 07:18:52 +00:00
|
|
|
rev = "v${version}";
|
2022-04-10 00:19:29 +01:00
|
|
|
sha256 = "sha256-W6o+dFUdnH4c+SLwqhoutOsXf+XLu2qNjYytPp43fjk=";
|
2016-09-08 14:30:20 +01:00
|
|
|
};
|
|
|
|
|
2022-04-10 00:19:29 +01:00
|
|
|
vendorSha256 = "sha256-28Xz8fIlrdCVkG0x5toJXht+RIkBmey4wi6WGqsq80k=";
|
2021-07-25 10:33:21 +01:00
|
|
|
proxyVendor = true;
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2021-08-21 09:23:48 +01:00
|
|
|
ldflags = [
|
|
|
|
"-w" "-s" "-X main.version=${version}"
|
|
|
|
];
|
2017-10-01 10:19:39 +01:00
|
|
|
|
2020-01-28 14:08:38 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) telegraf; };
|
|
|
|
|
2016-09-08 14:30:20 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "The plugin-driven server agent for collecting & reporting metrics";
|
2016-09-08 14:30:20 +01:00
|
|
|
license = licenses.mit;
|
2020-03-27 07:18:52 +00:00
|
|
|
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
|
2021-07-15 18:36:37 +01:00
|
|
|
maintainers = with maintainers; [ mic92 roblabla timstott ];
|
2016-09-08 14:30:20 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|