mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-07-24 01:31:20 +03:00
Commit adds `--vm-headers` and `--vm-bearer-token` flags. The flags are added to vmctl sub-commands: opentsdb, influx, remote-read, prometheus, mimir, thanos. vm-native sub-command already supports similar flags. The flags are useful when vmctl imports data to a VictoriaMetrics instance protected by authentication. Previously, to work around this limitation, a vmagent with remote write auth configured had to be spun up, and vmctl would write via it. This change allows vmctl to write directly. Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8897 PR https://github.com/VictoriaMetrics/VictoriaMetrics/pull/11089