Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Business Intelligence with Looker Cookbook

You're reading from   Business Intelligence with Looker Cookbook Create BI solutions and data applications to explore and share insights in real time

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781800560956
Length 256 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Khrystyna Grynko Khrystyna Grynko
Author Profile Icon Khrystyna Grynko
Khrystyna Grynko
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Looker 2. Chapter 2: Configuring Views and Models in a LookML Project FREE CHAPTER 3. Chapter 3: Working with Data in Explores 4. Chapter 4: Customizing and Serving Dashboards 5. Chapter 5: Making Dashboards Interactive through Dynamic Elements 6. Chapter 6: Troubleshooting Looker 7. Chapter 7: Integrating Looker with Other Applications 8. Chapter 8: Organizing the Looker Environment 9. Chapter 9: Administering and Monitoring Looker 10. Chapter 10: Preparing to Develop Looker Applications 11. Index 12. Other Books You May Enjoy

Getting access to Looker

In this recipe, you will discover how to get access to the Looker environment and start working in it. As mentioned in the introduction, we’ll focus on Looker (Google Cloud core), which is available from the Google Cloud console.

How to do it...

The steps for this recipe are as follows:

  1. Let’s start by going to the Google Cloud website: https://cloud.google.com/?hl=en. Once on the website, check whether you’re connected with your Gmail account by checking your Gmail profile photo in the top-right corner. Make sure that you’re connected with the email account you want to use for your Looker tests. If all is good, in the same top-right corner, click on Console (Figure 1.1).
Figure 1.1 – Google Cloud home page

Figure 1.1 – Google Cloud home page

  1. After clicking on Console, you will be redirected to the Google Cloud environment where you will need to choose your country, read and accept the Terms of Service, and click Agree and Continue.
  2. Note that you might be redirected to a Console page in a different language (your local language, for example). To follow the book’s guidelines easily, it is preferable to switch to the English version – you can do that in your Google account settings (https://myaccount.google.com/) or, on the first Google Cloud page where you clicked on Console, there was an option to choose the language before going to the console (check the top-right corner in Figure 1.1).
  3. If it’s your first time working within Google Cloud, you will need to create your first project by clicking on Create Project on the right (on the Google Cloud Welcome window after clicking on Agree and Continue). If you already have projects in your Google Cloud environment, you might still want to create a new one for your Looker experiment.
  4. After clicking on Create Project, you will need to choose a project name (or keep the default one) and organization, if you have one created – you might have one if you’re using your professional account. If not, keep the default No Organization option. Click CREATE to finalize the project creation (Figure 1.2). A Google Cloud project is a way to organize your resources and applications in Google Cloud Platform (GCP). It is a billing and access control entity. By creating a project, you can group your GCP resources together and control who has access to them. You can always switch between your projects in the top-left corner.
Figure 1.2 – Project creation

Figure 1.2 – Project creation

  1. When you’re on the Welcome page with your project chosen in the top-left corner, you can continue the activation of your free trial for your Google Cloud (GC) environment by clicking on START FREE in the top-right corner.
  2. On the Step 1 of 2 Account Information page (Figure 1.3), choose your country, and your organization or needs (there is an Other option if you don’t know yet), and then read and accept the Terms of Service.

Figure 1.3 – Account information

Figure 1.3 – Account information

  1. On the Step 2 of 2 page (Figure 1.4), you will need to provide your billing information. There is no autocharge after the free trial ends. Google only asks you for your credit card to make sure you are not a robot. If you use a credit or debit card, you won’t be charged unless you manually upgrade to a paid account.
Figure 1.4 – Payment information

Figure 1.4 – Payment information

  1. Google will verify your billing information; this is usually done through your banking application.
  2. Now, you’ll need to fill in a small questionnaire to help GC serve you better.
  3. Let’s finally get to Looker! Search for Looker either in the Search bar or by clicking on the hamburger button on the left (Figure 1.5). You can pin the Looker service in the hamburger menu to have it always at the top of your list.

Important note

Currently, to initiate a Looker free trial within your GC console, you’ll need to contact Looker sales directly. You can do this through the following form: https://cloud.google.com/resources/looker-free-trial.

Figure 1.5 – Search bar

Figure 1.5 – Search bar

  1. When you are on the Looker Welcome page, click on CREATE AN INSTANCE (Figure 1.6) to create your Looker instance. Important: To avoid any billing surprises, confirm your free Looker trial is active before creating your instance. You can check the trial status by contacting a Looker sales representative. A Looker instance is a dedicated, isolated environment for running Looker. Looker instances allow users to connect to data sources, model data, explore data, visualize data, share data, and embed analytics.
Figure 1.6 – Looker Welcome page

Figure 1.6 – Looker Welcome page

  1. If you see a popup that says Enable required APIs, click on Enable. The Looker (Google Cloud core) API is a RESTful API that allows you to programmatically interact with your Looker instance.

    On the page that will open after you enable the required APIs or after you click on CREATE AN INSTANCE, choose your instance name, then add your OAuth Application Credentials details to access your instance (Figure 1.7). You will need to create your OAuth application credentials in advance. To do this, open a new tab, go to the GC console, click on the menu button in the top - left corner and search for API & Services and click on it ->then click on Credentials -> then click on Create credentials (choose the Web application option) -> then choose OAuth client ID. It might ask you to create an OAuth consent screen where you will need to provide the app name and your email address in the Support and Developer section and keep the default values for the rest.

  2. Once your client ID is created, go back to your instance creation form and add your newly created credentials there. Finally, choose a region (if you can’t find your country, choose the one that is closer to you geographically) and click CREATE. The creation can take up to 1 hour.

Important note

After the free trial, your instance may be automatically converted to a paid Looker instance. Please confirm this with your Looker sales representative.

Figure 1.7 – Looker instance creation

Figure 1.7 – Looker instance creation

  1. When the instance is created, you will see your Looker instance link in the Instance URL column (Figure 1.8).
Figure 1.8 – Instance URL

Figure 1.8 – Instance URL

Troubleshooting Instance URL Errors

To avoid getting an error when clicking on the instance URL (such as, for example, Error 400: redirect_uri_mismatch), check the following elements:

  • You connected with the right Google account (when you’re connected with multiple Gmail accounts, the one that is used when you open the instance URL in the new tab might not be the one that has access to your Looker and GC environment)
  • In APIs & Services, make sure you created your OAuth credentials for the Web application
  • In APIs & Services, make sure you added your Looker instance URL plus /oauth2callback in Authorized redirect URIs (Figure 1.9)
  • In APIs & Services, make sure you added looker.app as the authorized domain on your OAuth consent screen (click Edit App to add it)

Figure 1.9 – Authorized redirect URIs

Figure 1.9 – Authorized redirect URIs

There’s more...

It is possible to get access to Looker through labs, as a way to test Looker without creating your own GC environment and without setting up a free trial. You can create an account on the Cloud Skills Boost website (https://www.cloudskillsboost.google/) and find free Looker quests and labs (make sure it is Looker and not Looker Studio). The labs on Cloud Skills Boost give you access to the sandbox environment with the data prepared for you. The labs give you a step-by-step exercise and teach you how to use Looker. The inconvenience is that you have limited time for your exercise. Additionally, you cannot work with your data and with your team on one project in the lab. These labs are only for training purposes and give you a good start in understanding the Looker environment.

For more in-depth exploration, you can combine the lab training and this book.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime