This application can be used to migrate existing dashboards.
It helps sanitizes previous dashboard data:
- proper widget id included in layout
- adds relation between layout and widgets
Clone this repository and run the following command:
go build
./migrate-dashboard --dataSource <path-to-signoz.db>
cd
to SigNoz repository and run following commands:
cd deploy/docker/clickhouse-setup
docker run -it -v $PWD/data/signoz/:/var/lib/signoz/ signoz/migrate-dashboard:0.8.1
cd
to SigNoz repository and run following commands:
cd deploy/swarm/clickhouse-setup
docker run -it -v $PWD/data/signoz/:/var/lib/signoz/ signoz/migrate-dashboard:0.8.1
Note: In case of multi node swarm cluster, run the above commands in the node where query-service is running: docker service ps query-service
.
To download migrate-dashboard
binary:
wget https://github.com/signoz/migrate-dashboard/releases/download/v0.8.1/migrate-dashboard-v0.8.1-linux-amd64.tar.gz
tar xzvf migrate-dashboard-v0.8.1-linux-amd64.tar.gz
To copy the binary in persistent volume path /var/lib/signoz
in query-service
:
kubectl cp -n platform ./migrate-dashboard my-release-signoz-query-service-0:/var/lib/signoz/migrate-dashboard
To exec
into the query-service
container:
kubectl -n platform exec -it pod/my-release-signoz-query-service-0 -- sh
Now, change directory to the /var/lib/signoz
and run the migration script:
cd /var/lib/signoz
./migrate-dashboard
There are is only one flag in the migrate-dashboard
binary:
Flags:
--dataSource
: Data Source path.default=/var/lib/signoz/signoz.db