This KB discuss how to login to Clickhouse Database for troubleshooting purposes.
These are the steps to login to Clickhouse Database which can be used during troubleshooting purposes.
bosh -d hub-####### ssh registry/0
kubectl cluster-info
kubectl get nodes -n tanzusm
kubectl get pods -n tanzusm
kubectl get pods -n tanzusm | grep clickhouse
kubectl get secret clickhouse-secret -n tanzusm -o jsonpath='{.data.password}' | base64 --decode; echo ""kubectl exec -it <chi-clickhouse-metrics-pod-name> -n tanzusm -- clickhouse-client
Useful query commands:
SHOW DATABASES;
SHOW TABLES from <database-name>;
CRITICAL: Making direct structural or data modifications to the clickhouse database is strictly discouraged and can cause severe, irreversible system issues.