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

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

34 lines
856 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "telegraf";
2023-04-22 07:11:06 +00:00
version = "1.26.1";
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-04-22 07:11:06 +00:00
sha256 = "sha256-wEmQOnpuJJtjcqw9HLV31wIFjcP48Ojo6bUnyrG3mYA=";
};
2023-04-22 07:11:06 +00:00
vendorHash = "sha256-Tt0ZY5gmT40x1cg/XseCKu10Ol3tE+yVv+7EczPRI6s=";
2021-07-25 09:33:21 +00:00
proxyVendor = true;
2021-08-21 08:23:48 +00:00
ldflags = [
"-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/";
maintainers = with maintainers; [ mic92 roblabla timstott ];
};
}