Enabling Analytics after upgrading
After the upgrade successfully completes, re-enable Analytics data collection.
Before you begin
About this task
Procedure
- Re-create your analytics backup secret:
- Delete the secret:
kubectl delete secret analytics-backup-secret
- Re-create the secret with a new name:
kubectl create secret generic <new backup secret name> --from-literal=access_key='Your_Access_Key' --from-literal=secret_key='Your_access_key_secret' -n Namespace_of_Analytics_Subsystem
- Update the credentials value in your analytics CR with the new backup secret name. Also, change
your backup path to prevent the backups list showing pre-upgrade backups that you cannot restore
from. For example:
spec: analytics: databaseBackup: ... credentials: <new backup secret name> path: <new backup path> ...
If this step is skipped, then backups will not run. - Delete the secret:
- Delete the old analytics PVCs. If this step is not done, then
your previous (and now inaccessible) analytics data will continue to occupy storage
space. List your PVCs and identify those that contain the following strings in their names:
storage-master, storage-coord, storage-data, storage-shared, kafka, zk
. These PVCs should all have anAGE
that dates back to before you started your upgrade.
In this example,kubectl get pvc -n <namespace> NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE ... data-ger2-analytics-storage-0 Bound a7s-pv-8735e017 250Gi RWO rook-ceph-block 3h29m data-ger2-analytics-storage-shared-0 Bound a7s-pv-30aac7ed 250Gi RWO rook-ceph-block 227d ...
data-ger2-analytics-storage-shared-0
contains the stringstorage-shared
, and it is 227 days old. To delete it, run:kubectl delete pvc data-ger2-analytics-storage-shared-0 -n <namespace>
- Add the new analytics:view permission to the Administrator
role in the Cloud
Manager UI.
- Click
, then select Roles
- Click
on the Administrator role and select Edit
- Select the checkbox next to the analytics permission and click save:
- Click
- Register new analytics services: Registering an analytics service
- Associate your new analytics services with your gateways Associating an analytics service with a gateway service