summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-06-20 11:28:19 +0300
committerGitHub <noreply@github.com>2024-06-20 11:28:19 +0300
commitffe87dc930d04fad0eeb51fb1f85beca93701719 (patch)
tree0313515743ca20b74f394b75c2608d494a7474b4 /src
parent29bd8abd3f1eecfbdf1bd2f8be18665d5fb4bdde (diff)
go.d replace colon in job name (#17967)
Diffstat (limited to 'src')
-rw-r--r--src/go/collectors/go.d.plugin/agent/confgroup/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/confgroup/config.go b/src/go/collectors/go.d.plugin/agent/confgroup/config.go
index 238b956c3e..ee94b0da75 100644
--- a/src/go/collectors/go.d.plugin/agent/confgroup/config.go
+++ b/src/go/collectors/go.d.plugin/agent/confgroup/config.go
@@ -125,7 +125,7 @@ func (c Config) ApplyDefaults(def Default) {
}
}
-var reInvalidCharacters = regexp.MustCompile(`\s+|\.+`)
+var reInvalidCharacters = regexp.MustCompile(`\s+|\.+|:+`)
func cleanName(name string) string {
return reInvalidCharacters.ReplaceAllString(name, "_")