- Export your data from Prometheus: https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md#how-to-export-time-series
- Run this script on the new data
python3 delete_timeseries.py -i imported_file.json -o output_file.json --from [unix timestamp] --to [unix timestamp]
- Delete original data from Prometheus: https://docs.victoriametrics.com/#how-to-delete-time-series
- Import the converted data: https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md#how-to-import-time-series-data
Note that the response cache must be deleted after these steps in order to remove previously cached results - see more details here.