Skip to content

Commit

Permalink
Update telegrafsensor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ale7714 authored Mar 7, 2024
1 parent 48a0395 commit 7bfc547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegrafsensor/telegrafsensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func appendFields(m Metric, newFields map[string]interface{}) (map[string]interf

func getTelegrafMetrics() (string, error) {
// telegraf must be configure to output in json format
cmd := exec.Command("telegraf", "--config", "/etc/viam-telegraf.conf", "--once")
cmd := exec.Command("telegraf", "--config", "/tmp/viam-telegraf.conf", "--once")
var out bytes.Buffer
cmd.Stdout = &out

Expand Down

0 comments on commit 7bfc547

Please sign in to comment.