From 6735d4e62ce63619c586b27d2d918931f80e49c3 Mon Sep 17 00:00:00 2001 From: Kurt Mackey Date: Mon, 9 Jan 2017 08:48:32 -0600 Subject: [PATCH] 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 --- plugins/outputs/librato/librato.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/outputs/librato/librato.go b/plugins/outputs/librato/librato.go index 3c4cb6d2a..ed020d54f 100644 --- a/plugins/outputs/librato/librato.go +++ b/plugins/outputs/librato/librato.go @@ -17,8 +17,8 @@ import ( // Librato structure for configuration and client type Librato struct { - APIUser string - APIToken string + APIUser string `toml:"api_user"` + APIToken string `toml:"api_token"` Debug bool SourceTag string // Deprecated, keeping for backward-compatibility Timeout internal.Duration