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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-28 14:15:23 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
, testers
, telegraf
}:
buildGoModule rec {
pname = "telegraf";
2023-05-28 04:39:24 +00:00
version = "1.26.3";
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}";
2023-05-28 04:39:24 +00:00
sha256 = "sha256-B1jYtJFj9hQT2ub9KaeoiWJZN9CHyZzA7juk0JZ0ZAo=";
};
2023-05-28 04:39:24 +00:00
vendorHash = "sha256-dwUVmUzQn66Pz4vY9JIHVImiM4FwbAPZctSach/jH4c=";
2021-07-25 09:33:21 +00:00
proxyVendor = true;
2021-08-21 08:23:48 +00:00
ldflags = [
2023-05-28 14:14:26 +00:00
"-s"
"-w"
"-X=github.com/influxdata/telegraf/internal.Commit=${src.rev}"
"-X=github.com/influxdata/telegraf/internal.Version=${version}"
2021-08-21 08:23:48 +00:00
];
2017-10-01 09:19:39 +00:00
2023-05-28 14:15:23 +00:00
passthru.tests = {
inherit (nixosTests) telegraf;
version = testers.testVersion {
package = telegraf;
};
};
2020-01-28 14:08:38 +00:00
meta = with lib; {
description = "The plugin-driven server agent for collecting & reporting metrics";
2020-03-27 07:18:52 +00:00
homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
2023-05-28 14:15:23 +00:00
changelog = "https://github.com/influxdata/telegraf/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mic92 roblabla timstott ];
};
}