Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some parts of the export contain to few backslashes #16

Open
klein-sipgate opened this issue May 12, 2023 · 0 comments
Open

Some parts of the export contain to few backslashes #16

klein-sipgate opened this issue May 12, 2023 · 0 comments

Comments

@klein-sipgate
Copy link

Hi

we use grafana as a part of percona's monitoring and management tool. While migrating that grafana (9.2.13) from sqlite to mysql backend, we faced the following issue:

Some dashboards have this in their data:

"regex":"/(([0-9\\.]+)\\.([0-9\\.]+)\\.([0-9\\.]+)-?([0-9?]+))/"

This is also exactly what goes into the dumped sql file.

However, after importing it into mysql, the data looks like this:

"regex":"/(([0-9\.]+)\.([0-9\.]+)\.([0-9\.]+)-?([0-9?]+))/"

Which ends up in a parse error and non-functional dashboard.

We manually edited the dump file so that it said

"regex":"/(([0-9\\\\.]+)\\\\.([0-9\\\\.]+)\\\\.([0-9\\\\.]+)-?([0-9?]+))/"

The dump could then be imported just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant