Skip to content

Commit

Permalink
Replace ":" with "_" in tags. This should make the mysql plugin work …
Browse files Browse the repository at this point in the history
…with the opentsdb output (it uses a "server" tag like "127.0.0.1:3306") (#1256)
  • Loading branch information
thirdeyenick authored and sparrc committed May 25, 2016
1 parent 1ef5599 commit 9966099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/opentsdb/opentsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type OpenTSDB struct {
}

var sanitizedChars = strings.NewReplacer("@", "-", "*", "-", " ", "_",
`%`, "-", "#", "-", "$", "-")
`%`, "-", "#", "-", "$", "-", ":", "_")

var sampleConfig = `
## prefix for metrics keys
Expand Down

0 comments on commit 9966099

Please sign in to comment.