diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-20 11:28:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 11:28:19 +0300 |
commit | ffe87dc930d04fad0eeb51fb1f85beca93701719 (patch) | |
tree | 0313515743ca20b74f394b75c2608d494a7474b4 /src | |
parent | 29bd8abd3f1eecfbdf1bd2f8be18665d5fb4bdde (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.go | 2 |
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, "_") |