From 1f10639222731c865635485dd94a79a8089c6e88 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 21 Jun 2016 11:52:49 +0100 Subject: [PATCH] Fix Graphite output mangling '%' character. closes #1377 --- CHANGELOG.md | 1 + plugins/outputs/graphite/graphite.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9741180e5e601..b93be4517093f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - [#1112](https://github.com/influxdata/telegraf/issues/1112): Set default Zookeeper chroot to empty string. - [#1335](https://github.com/influxdata/telegraf/issues/1335): Fix overall ping timeout to be calculated based on per-ping timeout. - [#1374](https://github.com/influxdata/telegraf/pull/1374): Change "default" retention policy to "". +- [#1377](https://github.com/influxdata/telegraf/issues/1377): Graphite output mangling '%' character. ## v1.0 beta 1 [2016-06-07] diff --git a/plugins/outputs/graphite/graphite.go b/plugins/outputs/graphite/graphite.go index 2a573e3450d36..30aee0eb618a2 100644 --- a/plugins/outputs/graphite/graphite.go +++ b/plugins/outputs/graphite/graphite.go @@ -96,7 +96,7 @@ func (g *Graphite) Write(metrics []telegraf.Metric) error { // Send data to a random server p := rand.Perm(len(g.conns)) for _, n := range p { - if _, e := fmt.Fprintf(g.conns[n], graphitePoints); e != nil { + if _, e := fmt.Fprint(g.conns[n], graphitePoints); e != nil { // Error log.Println("ERROR: " + err.Error()) // Let's try the next one