Skip to content

Commit

Permalink
Remove default systemd cgroup path
Browse files Browse the repository at this point in the history
There was a previous commit which wired up this flag throughout the
codebase, however that code didn't take into account that this flag
has a default parameter. Remove the default and let the user set it
if it's really necessary.
  • Loading branch information
derekparker committed Jan 13, 2022
1 parent 550ea0d commit 82fece8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/parca-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type flags struct {
TempDir string `kong:"help='Temporary directory path to use for object files.',default='/tmp'"`
SocketPath string `kong:"help='The filesystem path to the container runtimes socket. Leave this empty to use the defaults.'"`
ProfilingDuration time.Duration `kong:"help='The agent profiling duration to use. Leave this empty to use the defaults.',default='10s'"`
SystemdCgroupPath string `kong:"help='The cgroupfs path to a systemd slice.',default='/sys/fs/cgroup/systemd/system.slice'"`
SystemdCgroupPath string `kong:"help='The cgroupfs path to a systemd slice.'"`
}

func getExternalLabels(flagExternalLabels map[string]string, flagNode string) model.LabelSet {
Expand Down

0 comments on commit 82fece8

Please sign in to comment.