mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
Implemented dedicated thanos migration mode for vmctl to migrate data from Thanos installations to VictoriaMetrics. Key features: 1. Raw and downsampled blocks support: Reads both raw blocks (resolution=0) and downsampled blocks (5m/1h resolution) directly from Thanos snapshots 2. All aggregate types: Imports count, sum, min, max, and counter aggregates from downsampled blocks as separate metrics with resolution and type suffixes (e.g., metric_name:5m:count) 3. Dedicated flags: Uses `--thanos-*` prefixed flags (--thanos-snapshot, --thanos-concurrency, --thanos-filter-time-start, --thanos-filter-time-end, --thanos-filter-label, --thanos-filter-label-value, --thanos-aggr-types) 4. Selective aggregate import: Use `--thanos-aggr-types` to import only specific aggregates Usage: ``` vmctl thanos --thanos-snapshot /path/to/thanos-data --vm-addr http://victoria-metrics:8428 ``` Closes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/9262 Signed-off-by: Dmytro Kozlov <d.kozlov@victoriametrics.com> Signed-off-by: Max Kotliar <kotlyar.maksim@gmail.com> Co-authored-by: Max Kotliar <mkotlyar@victoriametrics.com> Co-authored-by: Max Kotliar <kotlyar.maksim@gmail.com>