-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update telegraf to 1.22.1. From Lucas Raab with minor tweak.
Most noteably fixes cpu metrics and arm64 support. influxdata/telegraf#10931
- Loading branch information
martin
committed
Apr 16, 2022
1 parent
6e3dd05
commit d05e8e0
Showing
6 changed files
with
116 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Index: plugins/inputs/nsd/nsd.go | ||
--- plugins/inputs/nsd/nsd.go.orig | ||
+++ plugins/inputs/nsd/nsd.go | ||
@@ -81,7 +81,7 @@ func nsdRunner(cmdName string, timeout config.Duration | ||
|
||
if useSudo { | ||
cmdArgs = append([]string{cmdName}, cmdArgs...) | ||
- cmd = exec.Command("sudo", cmdArgs...) | ||
+ cmd = exec.Command("doas", cmdArgs...) | ||
} | ||
|
||
var out bytes.Buffer |
12 changes: 12 additions & 0 deletions
12
sysutils/telegraf/patches/patch-plugins_inputs_unbound_unbound_go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Index: plugins/inputs/unbound/unbound.go | ||
--- plugins/inputs/unbound/unbound.go.orig | ||
+++ plugins/inputs/unbound/unbound.go | ||
@@ -108,7 +108,7 @@ func unboundRunner(unbound Unbound) (*bytes.Buffer, er | ||
|
||
if unbound.UseSudo { | ||
cmdArgs = append([]string{unbound.Binary}, cmdArgs...) | ||
- cmd = exec.Command("sudo", cmdArgs...) | ||
+ cmd = exec.Command("doas", cmdArgs...) | ||
} | ||
|
||
var out bytes.Buffer |