Fix for broken librato output (#2225)
* Fix for broken librato output These errors are delightful, but I'd rather avoid them: ``` Error parsing /etc/telegraf/telegraf.conf, line 2: field corresponding to `api_user' is not defined in `*librato.Librato' ``` * Fixed bad format from last commit
This commit is contained in:
parent
e225aa85e4
commit
6735d4e62c
|
@ -17,8 +17,8 @@ import (
|
||||||
|
|
||||||
// Librato structure for configuration and client
|
// Librato structure for configuration and client
|
||||||
type Librato struct {
|
type Librato struct {
|
||||||
APIUser string
|
APIUser string `toml:"api_user"`
|
||||||
APIToken string
|
APIToken string `toml:"api_token"`
|
||||||
Debug bool
|
Debug bool
|
||||||
SourceTag string // Deprecated, keeping for backward-compatibility
|
SourceTag string // Deprecated, keeping for backward-compatibility
|
||||||
Timeout internal.Duration
|
Timeout internal.Duration
|
||||||
|
|
Loading…
Reference in New Issue