Skip to content

Some parts of the export contain to few backslashes #16

Open
@klein-sipgate

Description

@klein-sipgate

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions