From 9966099d1a99e0ed218e7d1943325c9bc4eb04a0 Mon Sep 17 00:00:00 2001
From: Nick <nick@nine.ch>
Date: Wed, 25 May 2016 12:37:48 +0200
Subject: [PATCH] Replace ":" with "_" in tags. This should make the mysql
 plugin work with the opentsdb output (it uses a "server" tag like
 "127.0.0.1:3306") (#1256)

---
 plugins/outputs/opentsdb/opentsdb.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/outputs/opentsdb/opentsdb.go b/plugins/outputs/opentsdb/opentsdb.go
index 5e94ca34..4675dfff 100644
--- a/plugins/outputs/opentsdb/opentsdb.go
+++ b/plugins/outputs/opentsdb/opentsdb.go
@@ -22,7 +22,7 @@ type OpenTSDB struct {
 }
 
 var sanitizedChars = strings.NewReplacer("@", "-", "*", "-", " ", "_",
-	`%`, "-", "#", "-", "$", "-")
+	`%`, "-", "#", "-", "$", "-", ":", "_")
 
 var sampleConfig = `
   ## prefix for metrics keys
-- 
GitLab