Top Banner
Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.
49

Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Jan 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Spring Cleaning: Marie Kondo your Looker InstanceHow to identify and remove the things that don’t spark joy.

Page 2: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Agenda

1 Introductions

2 Declutter Content

3 System Activity Dashboards

4 System Activity Explores

5 Optimization using System Activity Explores

6 General Instance Monitoring

7 Questions

© L

ooke

r 20

18.

Conf

iden

tial

Page 3: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Why Monitor Looker?

● Reactive Monitoring○ Scheduler Failures○ Abnormal PDT build times

● Proactive Discovery of High Value Activities○ Identify Performance Bottlenecks○ Find content to promote

● Assess Your “Data Culture”○ Drive adoption○ Discover “power users”/advocates

© L

ooke

r 20

18.

Conf

iden

tial

Page 4: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

Declutter content

Page 5: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

Keep? Discard?● It is used on a

regular basis● It supports

crucial processes

● It is rarely or never used

● No one in the organization needs it

Page 6: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Low hanging fruit: empty the trash

© L

ooke

r 20

18.

Conf

iden

tial

● Reduce clutter by clearing out the trash on a regular basis

● Sort by deleted date to remove long-deleted items first

● Pro tip: Retain items deleted in the last 30 days or so in case they were deleted by accident

Page 7: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Finding unused content

© L

ooke

r 20

18.

Conf

iden

tial

● Unused content does still get validated via the content validator, causing the validator to run more slowly

● “Time since last use” dropdown can be set to different timeframes

Identify stagnant content in the Unused Content space

Page 8: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Finding unused content

© L

ooke

r 20

18.

Conf

iden

tial

● Delete the obvious

● Delete items that haven’t been used in a long time

● Pro Tip: Don’t be afraid to move too much to the trash - content can be restored if someone asks!

Delete as much as you can

Page 9: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

System Activity Dashboards

Page 10: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Content activity dashboard

© L

ooke

r 20

18.

Conf

iden

tial

● High-level overview of content usage within your instance

● Includes:○ Explore Usage○ Popular Content

and Explores○ Unused Content

and Explores

What is being viewed and scheduled within your Looker instance?

Page 11: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

User activity dashboard

© L

ooke

r 20

18.

Conf

iden

tial

● High-level overview of user activity within your instance

● Includes:○ Percentage of users

viewing data○ Time spent viewing

queries○ Lists of the most

active and inactive users

Who is using your Looker instance the most, and what are they doing?

Page 12: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Performance audit dashboard

© L

ooke

r 20

18.

Conf

iden

tial

● High-level overview of instance and query performance

● Includes:○ Average run times

of queries and PDTs

○ Query errors○ PDT build failures

How is Looker performing?

Page 13: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Usage dashboard

© L

ooke

r 20

18.

Conf

iden

tial

● High-level usage information

● Includes:○ History○ Looks○ Field Usage○ Schedules

● Explore from any of the tiles to dive deeper

Present Looker instance usage information

Page 14: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Usage dashboard: key tiles

● Query by Source: how are people in your organization engaging with Looker (via dashboards, Explores, etc.)

● Top Users, Last 30 Days: who has been really active in Looker and would be a good candidate to spark further adoption

● Query Runtime Performance: what queries are taking the longest to run and may require further investigation

● List of Top Dashboards: which dashboards are used the most frequently and should be monitored closely

© L

ooke

r 20

18.

Conf

iden

tial

Page 15: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

Those dashboards are really just entry points for exploring system activity

Page 16: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

System Activity Overview

● An internal Looker database ● Stores information about the Looker instance● Covers the following key areas

○ Content (looks and dashboards)○ Users○ Queries

● Maintains 90-days of history

© L

ooke

r 20

18.

Conf

iden

tial

Page 17: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

System Explores: Activity vs. Objects

© L

ooke

r 20

18.

Conf

iden

tial

Application Activity● Content Usage● Dashboard Performance● Event● Event Attribute● Field Usage● History● PDT Builds● PDT Event Log● Scheduled_plan● SQL Query

Application Objects● DB Connection● Dashboard● Group● Look● Merge Query● Result Maker Lookup● Role● Space● User

Page 18: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

Using system activity to identify areas for improvement

Page 19: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Which dashboards have too many tiles?

© L

ooke

r 20

18.

Conf

iden

tial

Page 20: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Dashboard optimization

● Start with the Dashboard explore

● The Dashboard explore includes information about dashboard elements

● Here we can find a count of tiles by dashboard

© L

ooke

r 20

18.

Conf

iden

tial

Which dashboards have too many tiles?

Page 21: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Dashboard optimization

● Use the Dashboard explore to identify the number of tiles by dashboard

● Best practice for dashboard performance is to have fewer than 25 tiles (filtering to 20+ captures all that are near that mark)

© L

ooke

r 20

18.

Conf

iden

tial

Which dashboards have too many tiles?

Page 22: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Dashboard optimization

● Add the Run on Load field to ensure that any large dashboards are set to “No”

● Use the Refresh Interval field to see if any large dashboards are set to auto refresh

© L

ooke

r 20

18.

Conf

iden

tial

Which dashboards have too many tiles?

Page 23: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Are there looks that could be turned into tiles instead of being saved as individual reports?

© L

ooke

r 20

18.

Conf

iden

tial

Page 24: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Content optimization

● Start with the Dashboard explore

● The Dashboard explore includes information about dashboard tiles and whether they are look-based or dashboard tiles only

© L

ooke

r 20

18.

Conf

iden

tial

Are there looks that can be deleted?

Page 25: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Content optimization

● Identify counts of Look and Lookless dashboard elements for each dashboard

● Best practice is for any tiles that are only used within a single dashboard to be converted to lookless

© L

ooke

r 20

18.

Conf

iden

tial

Are there looks that can be deleted?

Page 26: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Content optimization

● Filter out any dashboards that already have only lookless tiles

● Create a table calculation to find the % of look-based tiles by dashboard

© L

ooke

r 20

18.

Conf

iden

tial

Are there looks that can be deleted?

Page 27: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Are there spaces with too much clutter?

© L

ooke

r 20

18.

Conf

iden

tial

Page 28: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Space optimization

● Start with the Dashboard explore

● The Dashboard explore includes information about the spaces that dashboards are saved in.

© L

ooke

r 20

18.

Conf

iden

tial

Should spaces be reorganized?

Page 29: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Space optimization

● Identify counts dashboards by Space

● Include the number of dashboards created within the last 30 days

● Too many dashboards in a single space can make browsing difficult

© L

ooke

r 20

18.

Conf

iden

tial

Should spaces be reorganized?

Page 30: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Space optimization

© L

ooke

r 20

18.

Conf

iden

tial

What do you do when you have a lot of dashboards in a space?

Set up subspaces to organize content!

● Use Groups & Access Controls to hide spaces when appropriate

● Create an intuitive structure○ By team○ By use case

Page 31: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Space optimization

© L

ooke

r 20

18.

Conf

iden

tial

What do you do when you have a lot of dashboards in a space?

Page 32: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

Using system activity to investigate performance issues

Page 33: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Which queries are taking the longest to run?

© L

ooke

r 20

18.

Conf

iden

tial

Page 34: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Query optimization

● Start with the History explore

● The History explore includes details about all queries run in the past 90 days

● Here we can find recent queries that have taken a long time to execute

© L

ooke

r 20

18.

Conf

iden

tial

Which queries are taking the longest to run?

Page 35: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Query optimization

● Apply a relevant timeframe filter that is within the past 90 days● Filtering the History source to Dashboard or Saved Look ensures that only saved

queries are included

© L

ooke

r 20

18.

Conf

iden

tial

Which queries are taking the longest to run?

Page 36: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Query optimization

● Identify long-running queries using the Average Runtime in Seconds measure

● Query Run Count shows how many times the query has been run

● Dashboard Count shows how many dashboards the query appears on

© L

ooke

r 20

18.

Conf

iden

tial

Which queries are taking the longest to run?

Page 37: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Query optimization

● Find out more by adding in additional fields from the Query view

● Row and column totals often drive up query times since these execute as separate queries within the Look or Tile

© L

ooke

r 20

18.

Conf

iden

tial

Which queries are taking the longest to run?

Page 38: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Looker optimization

Save your custom system activities queries as looks and set up alerts so that you are notified when new issues arise with dashboards or queries!

These can be set to run on a regular cadence and only when there are results and results have changed.

© L

ooke

r 20

18.

Conf

iden

tial

Pro tip

Page 39: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

General instance monitoring

Page 40: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Explore clean-up

● Prioritize explores used by non-developers for clean-up to keep these user-friendly

● Identify Explores that aren’t commonly used

© L

ooke

r 20

18.

Conf

iden

tial

Which Explores are the most popular with different types of users?

Page 41: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Explore clean-up

● Select the following fields○ history.created_

date○ query.explore○ query.link

● Filter on query.explore and type in the specific explore name of interest

© L

ooke

r 20

18.

Conf

iden

tial

Has a specific Explore been used in the past 90 days?

Page 42: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Explore clean-up

● Select the following fields:○ History.created

_date○ Query.explore○ Query.link

● Filter on query.fields_used “contains” and then type in the view_name.field

© L

ooke

r 20

18.

Conf

iden

tial

Has a specific field been used in the past 90 days?

Page 43: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Using the history explore

● When investigating database performance, consider filtering on history.result_source = 'query' to look just at history records in which results were returned from the connecting database.

● The result_source is typically null for erroring queries. Add the status and message fields into your query to confirm and troubleshoot.

● The “Query” view should be used for general query investigation. The “Source Query” view pertains to Merged Results queries only.

© L

ooke

r 20

18.

Conf

iden

tial

Pro tips

Page 44: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial

If you are looking for something more advanced (and have some dev/ops support)

Page 45: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Try Henry!

© L

ooke

r 20

18.

Conf

iden

tial

Henry is an open source tool that helps Looker admins and developers identify aspects of the model that are not in use and can be removed

Please note that this tool is open source and is not supported by Looker’s normal support channels - any issues encountered while using the tool are encouraged to be filed here.

Page 46: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Henry will help identify

● Explores that have not been used in the last 90 days● Scheduled data and dashboard deliveries that are not succeeding● Any legacy features that are still in use● The number of fields that are not in use within each Explore● The specific fields that are not in use within each Explore

© L

ooke

r 20

18.

Conf

iden

tial

Page 47: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

Keeping Looker clean

● Majority of content is utilized● Content is easy to find

○ Named with clarity (minimized duplication of content)○ Intuitive spaces

● Tiles and Looks are not broken● Explores are purposeful

○ Fields are useful○ Explore user interface is friendly

● LookML is DRY

© L

ooke

r 20

18.

Conf

iden

tial

Page 48: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

QUESTIONS?

© L

ooke

r 20

18.

Conf

iden

tial

Page 49: Spring Cleaning: Marie Kondo your Looker Instance...Spring Cleaning: Marie Kondo your Looker Instance How to identify and remove the things that don’t spark joy.

© L

ooke

r 20

18.

Conf

iden

tial