Go back

How to get Redash on GCP(Google Cloud Platform)

This section describes how to launch and connect to Redash solution on Google Cloud Platform.

  1. Open Redash - Make sense of your data to take informed decisions listing on GCP Marketplace
  2. Click Launch.

/img/gcp/redash/marketplace.png

  • It will take you to the agreement page. On this page, you can change the project from the project selector on top navigator bar as shown in the below screenshot.

  • Accept the Terms and agreements by ticking the checkbox and clicking on the AGREE button. /img/common/gcp_agreement_page.png

  • It will show you the successfully agreed popup page. Click on Deploy. /img/common/gcp_agreement_accept_page.png

  • Select a zone where you want to launch the VM(such as us-east1-)

  • Optionally change the number of cores and amount of memory. ( This defaults to 1 vCPUs and 3.75 GB ram)

  • Optionally change the boot disk type and size. (This defaults to ‘Standard Persistent Disk’ and 20 GB respectively)

  • Optionally change the network name and subnetwork names. Be sure that whichever network you specify has ports 22 (for ssh), 3389 (for RDP) and 80 (for HTTP) exposed.

  • Click Deploy when you are done.

  • Redash - Make sense of your data to take informed decisions will begin deploying.

/img/gcp/redash/deployment-page.png

  1. A summary page displays when the compute engine is successfully deployed. Click on the Instance link to go to the instance page .

  2. On the instance page, click on the “SSH” button, select “Open in browser window”.

/img/gcp/metabase/ssh-option.png

  1. This will open SSH window in a browser.
  2. Run below command to set the password for “ubuntu” user
sudo passwd ubuntu

/img/gcp/metabase/ssh-passwd.png

  1. Now the password for ubuntu user is set, you can connect to the VM’s desktop environment from any local windows machine using RDP or linux machine using Remmina.

  2. To connect using RDP via Windows machine, first note the external IP of the VM from VM details page as highlighted below

/img/gcp/metabase/external-ip.png

  1. Then From your local windows machine, goto “start” menu, in the search box type and select “Remote desktop connection”

  2. In the “Remote Desktop connection” wizard, paste the external ip and click connect

/img/gcp/metabase/rdp.png

  1. This will connect you to the VM’s desktop environment. Provide “ubuntu” as the userid and the password set in step 6 to authenticate. Click OK

/img/gcp/metabase/rdp-login.png

  1. Now you are connected to out of box Redash environment via Windows machines.

/img/gcp/redash/rdp-desktop.png

  1. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu, in the search box type and select “Remmina”.

Note: If you don’t have Remmina installed on your Linux machine, firstInstall Remmina as per your linux distribution.

/img/gcp/common/remmina-search.png 14. In the “Remmina Remote Desktop Client” wizard, select the RDP option from dropdown and paste the external ip and click enter.

/img/gcp/common/remmina-external-ip.png 15. This will connect you to the VM’s desktop environment. Provide “ubuntu” as the userid and the password set in step 6 to authenticate. Click OK

/img/gcp/common/remmina-rdp-login.png 16. Now you are connected to out of box Redash environment via Linux machine.

/img/gcp/redash/rdp-desktop.png

  1. Once your vm is up and running, you can access Redash setup page by going to http://VM_Public_IP. Provide the basic information on this initial setup page and click on setup button at the bottom.

Note: Please use http and not https in the URL when accessing Redash Web UI, e.g. http ://35.223.255.180

/img/gcp/redash/redash-setup-page.png

  1. It will take you to the Redash Home page.

/img/gcp/redash/redash-homepage.png

  1. You can add more users by going to Settings and selecting Users tab.

/img/gcp/redash/profile-page.png

/img/gcp/redash/add-new-user.png

  1. If for some reason, your Redash Web UI is not coming or showing below proxy error message. Then follow these steps.

/img/gcp/redash/proxy-error.png

  • Connect to VM via SSH and check the container running status by running:
sudo docker ps -a

/img/gcp/redash/docker-ps-a-output.png

  • If the container are in running status then stop them by running
sudo docker stop redash_postgres_1 redash_redis_1 redash_server_1 redash_worker_1 redash_scheduler_1 redash_email_1

/img/gcp/redash/stop-container.png

  • Now again check the status with docker ps -a command as shown above and it should show container status as Exited

/img/gcp/redash/docker-exited-status.png

  • Now start the containers using -
sudo docker start redash_postgres_1 redash_redis_1 redash_server_1 redash_worker_1 redash_scheduler_1 redash_email_1

/img/gcp/redash/docker-start.png

  • Once containers are up and running you can access the Redash Web UI using http://public-ip

/img/gcp/redash/redash-login.png

Go back