fix(inputs.procstat): Correctly use systemd-unit setting for finding them (#16060)
This commit is contained in:
parent
e59010ad80
commit
6c45aefe6e
|
|
@ -107,7 +107,7 @@ func (f *Filter) ApplyFilter() ([]processGroup, error) {
|
||||||
}
|
}
|
||||||
groups = append(groups, g...)
|
groups = append(groups, g...)
|
||||||
case len(f.SystemdUnits) > 0:
|
case len(f.SystemdUnits) > 0:
|
||||||
g, err := findBySystemdUnits(f.CGroups)
|
g, err := findBySystemdUnits(f.SystemdUnits)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue