grafana/k6 · error

max allowed number of time series in a single batch must be

Error message

max allowed number of time series in a single batch must be a positive number but is %d

What it means

Error "max allowed number of time series in a single batch must be a positive number but is %d" thrown in grafana/k6.

Source

Thrown at internal/cmd/outputs_cloud.go:97

		test.derivedConfig.ExecutionSegmentSequence,
	)
	if err != nil {
		return err
	}
	executionPlan := test.derivedConfig.Scenarios.GetFullExecutionRequirements(et)

	duration, testEnds := lib.GetEndOffset(executionPlan)
	if !testEnds {
		return errors.New("tests with unspecified duration are not allowed when outputting data to k6 cloud")
	}

	if conf.MetricPushConcurrency.Int64 < 1 {
		return fmt.Errorf("metrics push concurrency must be a positive number but is %d",
			conf.MetricPushConcurrency.Int64)
	}

	if conf.MaxTimeSeriesInBatch.Int64 < 1 {
		return fmt.Errorf("max allowed number of time series in a single batch must be a positive number but is %d",
			conf.MaxTimeSeriesInBatch.Int64)
	}

	if conf.PushRefID.Valid && conf.PushRefID.String != "" {
		if err := applyExternalProvisioningCreds(gs, test, &conf); err != nil {
			return err
		}
		test.preInitState.RuntimeOptions.Env[testRunIDKey] = conf.PushRefID.String
		gs.Logger.Debug("using PushRefID, skipping CreateTestRun")
		// Externally-provisioned run: the run id is the PushRefID.
		configureCloudLogPusher(gs, conf, conf.PushRefID.String)
		return nil
	}

	var testArchive *lib.Archive
	if !test.derivedConfig.NoArchiveUpload.Bool {
		testArchive = test.makeArchive()
	}

View on GitHub (pinned to 93accf6570)

When it happens

Trigger: Thrown at internal/cmd/outputs_cloud.go:97 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15). Data as JSON: /api/errors/d1750358d328842f. Report an issue: GitHub.