Grafana and MariaDB Galera Cluster

I understand the grafana internal datasource can be configured in defaults.js file where I can specify the way I want to store the internal data. I want to use MariaDB Galera Cluster which is mysql fork to store session information. I tried that but I saw grafana tries to write multiple records in the table throwing “Duplicate primary key” error. I would appreciate a help here if anyone is successful in doing so.

We have no experiance using MariaDB Galera Cluster so your better seeking help with them in how to set that up.