squirrat
squirrat

Reputation: 405

`telegraf help` on command line gives error

I installed telegraf using homebrew on MacOS and ran the generator:

Now telegraf help gives the error:

No config file specified, and could not find one in $TELEGRAF_CONFIG_PATH, /Users/Username/.telegraf/telegraf.conf, or /etc/telegraf/telegraf.conf

There is no location /etc/telegraf. There is no directory /~.telegraf either.

This seems to be an error with the telegraf installation script. Homebrew installs telegraf to

/usr/local/Cellar/telegraf/0.13.1/bin

Upvotes: 0

Views: 1099

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 207808

Try

find /usr $HOME -name telegraf.conf

to see where homebrew has created it and then set TELEGRAF_CONFIG_PATH to match.

Upvotes: 2

Related Questions