Upgrade to 0.8.0 from earlier versions
v0.8.0 is a breaking release which requires data migration, if you are upgrading from an older version then you have to run the data migration scripts to be able to see past data.
First upgrade to 0.8.0​
Follow the platform specific instructions to upgrade to 0.8.0 and above.
Note that the past data will not be visible on the new application until you run the migration script.
Docker​
git clone -b main https://github.com/SigNoz/signoz.git && cd signoz/deploy/
git checkout v0.8.0
./install.sh
Kubernetes​
helm repo update
helm search repo signoz --versions
helm -n platform upgrade my-release signoz/signoz
Steps to run migration script:​
Docker​
docker run --name signoz-migrate --network clickhouse-setup_default \
-it -d signoz/migrate:0.8 -host=clickhouse -port=9000
Steps to check logs:
docker logs -f signoz-migrate
In case of failure and have to run again, make sure to cleanup the container before running the migration script again.
docker stop signoz-migrate
docker rm signoz-migrate
Kubernetes​
kubectl -n platform run -i -t signoz-migrate --image=signoz/migrate:0.8 --restart='Never' \
-- -host=my-release-clickhouse -port=9000 -userName=admin -password=27ff0399-0d3a-4bd8-919d-17c2181e6fb9
Steps to check logs:
kubectl -n platform logs -f signoz-migrate
In case of failure and have to run again, make sure to cleanup the pod before running the migration script again.
kubectl -n platform delete pod signoz-migrate
There are some custom flags which can be enabled based on different usecases.
All the flags below are optional
Flags:
-port
: Specify port of clickhouse.default=9000
-host
: Specify host of clickhouse.default=127.0.0.1
-userName
: Specify user name of clickhouse.default=default
-password
: Specify password of clickhouse.default=""
-dropOldTable
: If it is set to true then the old tables will be dropped after data migration is successfuldefault=true
-service
: If you want to restart the migration starting with the service after it has failed specify the service name with -service.default=""
-timeNano
: Timestamp in nano after which the migration needs to be restarted.default=""