Backup & Restore Metrics
Learn how to backup and restore metrics into groundcover metrics storage
groundcover uses VictoriaMetrics as its underlying metrics storage solution. As such, groundcover integrates seamlessly with VictoriaMetrics vmbackup and vmrestore tools.
Doing incremental backups
port-forward groundcover's VictoriaMetrics service object
Run the
vmbackup
utility, in this example we'll set the destination to an AWS S3 bucket, but more providers are supported
vmbackup automatically uses incremental backup strategy if the destination contains an existing backup
Restoring from backup
Scale down VictoriaMetrics statefulSet (VictoriaMetrics must be offline during restorations)
Get the VictoriaMetrics PVC name
Create the following Kubernetes Job manifest
vm-restore.yaml
Make sure you replace {VICTORIA METRICS PVC NAME} with the fetched pvc name
Deploy the job and wait for completion
Once completed, scale up groundcover's VictoriaMetrics instance
Last updated