grafana / grafana/database-migrator

Lost Data sources auth config when migrating

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
126
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi

I use Grafana 8.1.2 in docker with sqlite backend (the default).
I spun up a mysql server to have an external DB, and used your script to migrate data.

Everything went fine except for one thing: 3 over 4 of my datasources (influxdb 1) lost their basic auth settings. I had to put them back manually.

Is this expected? Or was there some bug lurking somewhere?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the database migration script and reproduce the reported Grafana 8.1.2 migration from SQLite to MySQL using InfluxDB 1 datasources. Check whether basic-auth settings are preserved for every datasource; done means the migrated configuration retains those settings without manual restoration.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, shell, sqlite
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.