diff --git a/internal/collector/process/process.go b/internal/collector/process/process.go index 7d182b41..a8ef4b3b 100644 --- a/internal/collector/process/process.go +++ b/internal/collector/process/process.go @@ -362,7 +362,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) error { for name, process := range perfData { // Duplicate processes are suffixed #, and an index number. Remove those. - name, _, _ = strings.Cut(name, "#") + name, _, _ = strings.Cut(name, ":") if c.config.ProcessExclude.MatchString(name) || !c.config.ProcessInclude.MatchString(name) { continue