diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-20 11:28:19 +0300 |
---|---|---|
committer | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2024-06-21 08:33:46 -0400 |
commit | 94cd9739ec7f76095026a3330a29c2ba656c68cd (patch) | |
tree | 581cd6aae6e7ed666644d38448be7d793d4c836d /src | |
parent | 45cee756517ec5ce04e139ef41952755ca64ad4b (diff) |
go.d replace colon in job name (#17967)
(cherry picked from commit ffe87dc930d04fad0eeb51fb1f85beca93701719)
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, "_") |