fix(inputs.procstat): Correctly use systemd-unit setting for finding them (#16060)

This commit is contained in:
Benjamin Delacour 2024-10-23 15:15:35 +02:00 committed by GitHub
parent e59010ad80
commit 6c45aefe6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (f *Filter) ApplyFilter() ([]processGroup, error) {
}
groups = append(groups, g...)
case len(f.SystemdUnits) > 0:
g, err := findBySystemdUnits(f.CGroups)
g, err := findBySystemdUnits(f.SystemdUnits)
if err != nil {
return nil, err
}