grafana/k6 · error

unknown query parameter: %s

Error message

unknown query parameter: %s

What it means

Strict query-parameter whitelist in the InfluxDB output's ParseURL: every key in the output URL's query string must match one of the known parameters (insecure, payload_size, consistency, pushInterval, concurrentWrites, tagsAsFields, and similar). This error reports the first unrecognized key, protecting against typos silently disabling intended configuration — e.g., pushingInterval instead of pushInterval.

Source

Thrown at internal/output/influxdb/config.go:188

		case "consistency":
			c.Consistency = null.StringFrom(vs[0])

		case "pushInterval":
			err = c.PushInterval.UnmarshalText([]byte(vs[0]))
			if err != nil {
				return c, err
			}
		case "concurrentWrites":
			var writes int
			writes, err = strconv.Atoi(vs[0])
			if err != nil {
				return c, err
			}
			c.ConcurrentWrites = null.IntFrom(int64(writes))
		case "tagsAsFields":
			c.TagsAsFields = vs
		default:
			return c, fmt.Errorf("unknown query parameter: %s", k)
		}
	}
	return c, err
}

// GetConsolidatedConfig combines {default config values + JSON config +
// environment vars + URL config values}, and returns the final result.
func GetConsolidatedConfig(jsonRawConf json.RawMessage, env map[string]string, url string) (Config, error) {
	result := NewConfig()
	if jsonRawConf != nil {
		jsonConf, err := ParseJSON(jsonRawConf)
		if err != nil {
			return result, err
		}
		result = result.Apply(jsonConf)
	}

	envConfig := Config{}

View on GitHub (pinned to 165bb3c1a4)

Solutions

  1. Check the parameter name for typos against the k6 InfluxDB output documentation
  2. Move unsupported parameters out of the K6_INFLUXDB_ADDR URL
  3. Use the corresponding environment variables (K6_INFLUXDB_PUSH_INTERVAL, etc.) or -o influxdb settings instead
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at internal/output/influxdb/config.go:169 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of grafana/k6@165bb3c1a4 (2026-08-18). Data as JSON: /api/errors/73c24df724ef0f10. Report an issue: GitHub.