From 2eafa4ed5c4b0124e643af91030650e4736611a9 Mon Sep 17 00:00:00 2001 From: James Flather Date: Thu, 13 Feb 2025 16:28:42 +0000 Subject: [PATCH] rpk: UX-83 Update debug bundle metrics defaults --- src/go/rpk/pkg/cli/debug/common/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/rpk/pkg/cli/debug/common/common.go b/src/go/rpk/pkg/cli/debug/common/common.go index 920b4f938530e..25dddaa95343b 100644 --- a/src/go/rpk/pkg/cli/debug/common/common.go +++ b/src/go/rpk/pkg/cli/debug/common/common.go @@ -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: