14 subPackages = [ "cmd/telegraf" ];
16 src = fetchFromGitHub {
20 hash = "sha256-LTo9wWCqjLoA9wjCXhZ6EjvRR/Xp8ByHvq/ytgS8sCo=";
23 vendorHash = "sha256-spXS1vNRgXBO2xZIyVgsfO5V+SYK8dC6YDA/dGOYt6g=";
29 "-X=github.com/influxdata/telegraf/internal.Commit=${src.rev}"
30 "-X=github.com/influxdata/telegraf/internal.Version=${version}"
34 version = testers.testVersion {
37 } // lib.optionalAttrs stdenv.isLinux {
38 inherit (nixosTests) telegraf;
42 description = "Plugin-driven server agent for collecting & reporting metrics";
43 mainProgram = "telegraf";
44 homepage = "https://www.influxdata.com/time-series-platform/telegraf/";
45 changelog = "https://github.com/influxdata/telegraf/blob/${src.rev}/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ mic92 roblabla timstott zowoq ];