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

@@ -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