You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cli(tsdump): remove tsdump file dependency from datadoginit
The datadoginit format previously required a tsdump file as input to
extract metric names, then override their values to zero and timestamps
to current time before uploading to Datadog. This created an unnecessary
dependency and could miss metrics not present in the specific tsdump
file.
This change makes datadoginit format work independently by leveraging
the existing generateMetricList() mechanism that starts a test server
and scrapes all metric registries. This ensures complete metric coverage
and eliminates the tsdump file dependency.
The implementation uses a simple sequential approach without concurrency
since there are only ~3153 metrics total, completing uploads in under 10
seconds.
Additionally, adds a hidden --dd-metric-interval flag to make the metric
interval configurable for datadoginit uploads (defaults to 10 seconds).
The flag is hidden to avoid confusing users as it only applies to
datadoginit.
Release note: None
Part of: CRDB-52597
Epic: None
Copy file name to clipboardExpand all lines: pkg/cli/debug.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1620,6 +1620,8 @@ func init() {
1620
1620
f.IntVar(&debugTimeSeriesDumpOpts.noOfUploadWorkers, "upload-workers", 75, "number of workers to upload the time series data in parallel")
1621
1621
f.BoolVar(&debugTimeSeriesDumpOpts.retryFailedRequests, "retry-failed-requests", false, "retry previously failed requests from file")
1622
1622
f.BoolVar(&debugTimeSeriesDumpOpts.disableDeltaProcessing, "disable-delta-processing", false, "disable delta calculation for counter metrics (enabled by default)")
1623
+
f.Int64Var(&debugTimeSeriesDumpOpts.ddMetricInterval, "dd-metric-interval", debugTimeSeriesDumpOpts.ddMetricInterval, "interval in seconds for datadoginit format only (default 10). Regular datadog format uses actual intervals from tsdump.")
1624
+
f.Lookup("dd-metric-interval").Hidden=true// this is for internal use only
0 commit comments