Fix Graphite output mangling '%' character.

closes #1377
This commit is contained in:
Cameron Sparr 2016-06-21 11:52:49 +01:00
parent af0979cce5
commit 1f10639222
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
- [#1112](https://github.com/influxdata/telegraf/issues/1112): Set default Zookeeper chroot to empty string. - [#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. - [#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 "". - [#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] ## v1.0 beta 1 [2016-06-07]

View File

@ -96,7 +96,7 @@ func (g *Graphite) Write(metrics []telegraf.Metric) error {
// Send data to a random server // Send data to a random server
p := rand.Perm(len(g.conns)) p := rand.Perm(len(g.conns))
for _, n := range p { 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 // Error
log.Println("ERROR: " + err.Error()) log.Println("ERROR: " + err.Error())
// Let's try the next one // Let's try the next one