grafana/k6 · error

metrics push concurrency must be a positive number but is %d

Error message

metrics push concurrency must be a positive number but is %d

What it means

Error "metrics push concurrency must be a positive number but is %d" thrown in grafana/k6.

Source

Thrown at internal/cmd/outputs_cloud.go:92

		}
	}

	et, err := lib.NewExecutionTuple(
		test.derivedConfig.ExecutionSegment,
		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
	}

View on GitHub (pinned to 93accf6570)

When it happens

Trigger: Thrown at internal/cmd/outputs_cloud.go:92 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/8d27b8ddbfc876db. Report an issue: GitHub.