aws-observability / amazon-managed-grafana-migrator

CLI migration utility to migrate Grafana content to Amazon Managed Grafana
Apache License 2.0
26 stars 7 forks source link

[Feature] Automated Backup and Restore for AWS Grafana #31

Closed 1md3nd-impressico closed 2 months ago

1md3nd-impressico commented 4 months ago

Is your feature request related to a problem? Please describe:

Yes, I have a use case where I need to regularly back up my AWS Grafana instance to ensure that I can restore it in the future if necessary. Currently, there is no built-in feature to automate the backup process, and I am concerned about data loss if I need to delete or migrate my existing Grafana instance.

Describe the solution you'd like:

I propose adding a feature that allows users to create automated backups of their AWS Grafana instance. The desired functionality would be similar to a SQL dump where users can:

Export Grafana Configuration: Dump the current Grafana configuration, dashboards, and data sources to a local file or cloud storage. Schedule Backups: Set up a schedule (e.g., weekly on Sundays) to automatically create and store these backups. Restore from Backup: Provide an option to restore Grafana from a backup file, allowing users to roll back to a previous state if needed. The backup files could be stored in various formats (e.g., JSON, YAML) and should be compatible with cloud storage solutions such as AWS S3, Azure Blob Storage, or Google Cloud Storage.

Describe alternatives you've considered:

Manual Export: Currently, users can manually export dashboards and configurations using Grafana’s UI, but this approach is cumbersome and prone to human error. Third-Party Tool: Some third-party tools or scripts might be available to perform backups, but they may not offer integration with AWS services or may require custom setup and maintenance.

Additional context:

Having a reliable and automated backup mechanism for AWS Grafana would greatly enhance data protection and recovery capabilities. It would also provide peace of mind by ensuring that important configurations and dashboards can be restored in case of accidental deletion or disaster scenarios.

bonclay7 commented 2 months ago

@1md3nd-impressico I feel like this project https://github.com/aws-samples/grafana-automated-backup-tool would be what you need

1md3nd-impressico commented 2 months ago

I got the solution.