Skip to content

Commit

Permalink
rpk: UX-83 Update debug bundle metrics defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
JFlath committed Feb 13, 2025
1 parent c8306cf commit 2eafa4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/go/rpk/pkg/cli/debug/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (o *DebugBundleSharedOptions) InstallFlags(f *pflag.FlagSet) {
f.StringVar(&o.LogsSizeLimit, "logs-size-limit", "100MiB", "Read the logs until the given size is reached. For example: 3MB, 1GiB")
f.StringVar(&o.LogsSince, "logs-since", "yesterday", "Include logs dated from specified date onward; (journalctl date format: YYYY-MM-DD, 'yesterday', or 'today'). See the journalctl documentation for more options")
f.StringVar(&o.LogsUntil, "logs-until", "", "Include logs older than the specified date; (journalctl date format: YYYY-MM-DD, 'yesterday', or 'today'). See the journalctl documentation for more options")
f.DurationVar(&o.MetricsInterval, "metrics-interval", 10*time.Second, "Interval between metrics snapshots. For example: 30s, 1.5m")
f.IntVar(&o.MetricsSampleCount, "metrics-samples", 2, "Number of metrics samples to take (at the interval of --metrics-interval). Must be >= 2")
f.DurationVar(&o.MetricsInterval, "metrics-interval", 15*time.Second, "Interval between metrics snapshots. For example: 30s, 1.5m")
f.IntVar(&o.MetricsSampleCount, "metrics-samples", 8, "Number of metrics samples to take (at the interval of --metrics-interval). Must be >= 2")
f.StringArrayVarP(&o.PartitionFlag, "partition", "p", nil, "Comma-separated partition IDs. When provided, rpk saves extra Admin API requests for those partitions. See the help for extended usage")
f.StringVarP(&o.Namespace, "namespace", "n", "redpanda", "The namespace to use to collect the resources from (K8s only)")
f.StringArrayVarP(&o.LabelSelector, "label-selector", "l", []string{"app.kubernetes.io/name=redpanda"}, "Comma-separated label selectors to filter your resources. For example: <label>=<value>,<label>=<value> (K8s only)")
Expand Down

0 comments on commit 2eafa4e

Please sign in to comment.