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

33 lines
875 B
Nix
Raw Normal View History

2020-08-15 05:32:02 +00:00
{ lib, buildGoModule, fetchFromGitHub, nixosTests, fetchpatch }:
2020-03-27 07:18:52 +00:00
buildGoModule rec {
pname = "telegraf";
2021-01-10 10:12:14 +00:00
version = "1.17.0";
excludedPackages = "test";
2019-01-21 11:28:32 +00:00
subPackages = [ "cmd/telegraf" ];
src = fetchFromGitHub {
owner = "influxdata";
repo = "telegraf";
2020-03-27 07:18:52 +00:00
rev = "v${version}";
2021-01-10 10:12:14 +00:00
sha256 = "1j3wi398vcvlnf1q335hhbw6bq69qclak92sg2na05cl4snw68y0";
};
2021-01-10 10:12:14 +00:00
vendorSha256 = "0vb1gvmj7pmz4dljyk91smkn8japmv7mc3mgb0s1imvxala8qq83";
2017-10-01 09:19:39 +00:00
buildFlagsArray = [ ''-ldflags=
2019-09-18 02:16:09 +00:00
-w -s -X main.version=${version}
2017-10-01 09:19:39 +00:00
'' ];
2020-01-28 14:08:38 +00: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 07:18:52 +00:00
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
2021-01-10 10:14:58 +00:00
maintainers = with maintainers; [ mic92 roblabla timstott foxit64 ];
};
}