-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed break from last commit. Left manifest as an example rather than…
… the default
- Loading branch information
1 parent
b37f1f9
commit 0f1030d
Showing
8 changed files
with
1,795 additions
and
1,794 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#Instead of copying the entire repo into a project, you can just use a project import like the one below | ||
project_name: "local_name_of_your_choice" | ||
|
||
remote_dependency: redshift_block { | ||
url: "git://github.com/llooker/blocks_redshift_admin.git" | ||
#ref: "caec6c02c89b8920b5017053a526b994b426e8e7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
# - dashboard: redshift_admin | ||
# title: 'Redshift Admin' | ||
# layout: tile | ||
# tile_size: 100 | ||
- dashboard: redshift_admin | ||
title: 'Redshift Admin' | ||
layout: tile | ||
tile_size: 100 | ||
|
||
# elements: | ||
elements: | ||
|
||
# - name: table_load_summary | ||
# title: 'Table Load Summary' | ||
# type: table | ||
# model: redshift_model | ||
# explore: redshift_data_loads | ||
# dimensions: [redshift_data_loads.root_bucket, redshift_data_loads.s3_path_clean, redshift_data_loads.file_stem] | ||
# measures: [redshift_data_loads.hours_since_last_load] | ||
# sorts: [redshift_data_loads.root_bucket] | ||
# show_view_names: true | ||
# show_row_numbers: true | ||
# width: 12 | ||
# height: 4 | ||
# limit: 500 | ||
- name: table_load_summary | ||
title: 'Table Load Summary' | ||
type: table | ||
model: redshift_model | ||
explore: redshift_data_loads | ||
dimensions: [redshift_data_loads.root_bucket, redshift_data_loads.s3_path_clean, redshift_data_loads.file_stem] | ||
measures: [redshift_data_loads.hours_since_last_load] | ||
sorts: [redshift_data_loads.root_bucket] | ||
show_view_names: true | ||
show_row_numbers: true | ||
width: 12 | ||
height: 4 | ||
limit: 500 | ||
|
||
# - name: recent_files_loaded | ||
# title: 'Recent Files Loaded' | ||
# type: table | ||
# model: redshift_model | ||
# explore: redshift_data_loads | ||
# dimensions: [redshift_data_loads.file_name] | ||
# measures: [redshift_data_loads.hours_since_last_load] | ||
# filters: | ||
# redshift_data_loads.load_date: 3 hours | ||
# sorts: [redshift_data_loads.hours_since_last_load] | ||
# show_view_names: true | ||
# show_row_numbers: true | ||
# width: 12 | ||
# height: 4 | ||
# limit: 500 | ||
- name: recent_files_loaded | ||
title: 'Recent Files Loaded' | ||
type: table | ||
model: redshift_model | ||
explore: redshift_data_loads | ||
dimensions: [redshift_data_loads.file_name] | ||
measures: [redshift_data_loads.hours_since_last_load] | ||
filters: | ||
redshift_data_loads.load_date: 3 hours | ||
sorts: [redshift_data_loads.hours_since_last_load] | ||
show_view_names: true | ||
show_row_numbers: true | ||
width: 12 | ||
height: 4 | ||
limit: 500 | ||
|
||
# - name: recent_load_errors | ||
# title: 'Recent Load Errors' | ||
# type: table | ||
# model: redshift_model | ||
# explore: redshift_etl_errors | ||
# dimensions: [redshift_etl_errors.error_date, redshift_etl_errors.file_name, redshift_etl_errors.column_name, | ||
# redshift_etl_errors.column_data_type, redshift_etl_errors.error_reason] | ||
# filters: | ||
# redshift_etl_errors.error_date: 7 days | ||
# sorts: [redshift_etl_errors.error_date desc] | ||
# show_view_names: true | ||
# width: 12 | ||
# height: 4 | ||
# limit: 500 | ||
- name: recent_load_errors | ||
title: 'Recent Load Errors' | ||
type: table | ||
model: redshift_model | ||
explore: redshift_etl_errors | ||
dimensions: [redshift_etl_errors.error_date, redshift_etl_errors.file_name, redshift_etl_errors.column_name, | ||
redshift_etl_errors.column_data_type, redshift_etl_errors.error_reason] | ||
filters: | ||
redshift_etl_errors.error_date: 7 days | ||
sorts: [redshift_etl_errors.error_date desc] | ||
show_view_names: true | ||
width: 12 | ||
height: 4 | ||
limit: 500 | ||
|
||
# - name: database_consumption | ||
# title: 'Database Consumption' | ||
# type: table | ||
# model: redshift_model | ||
# explore: redshift_db_space | ||
# dimensions: [redshift_db_space.schema, redshift_db_space.table_stem] | ||
# measures: [redshift_db_space.total_rows, redshift_db_space.total_megabytes, redshift_db_space.total_tables] | ||
# sorts: [redshift_db_space.total_megabytes desc] | ||
# show_view_names: true | ||
# show_row_numbers: true | ||
# width: 12 | ||
# height: 4 | ||
# limit: 500 | ||
- name: database_consumption | ||
title: 'Database Consumption' | ||
type: table | ||
model: redshift_model | ||
explore: redshift_db_space | ||
dimensions: [redshift_db_space.schema, redshift_db_space.table_stem] | ||
measures: [redshift_db_space.total_rows, redshift_db_space.total_megabytes, redshift_db_space.total_tables] | ||
sorts: [redshift_db_space.total_megabytes desc] | ||
show_view_names: true | ||
show_row_numbers: true | ||
width: 12 | ||
height: 4 | ||
limit: 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# # Make sure this is a connection where the database user has sufficient permissions (per above link) | ||
|
||
connection: "demonew_events_ecommerce" | ||
case_sensitive: no | ||
|
||
include: "redshift_*.dashboard" | ||
include: "redshift_*.view" | ||
|
||
explore: redshift_data_loads { | ||
hidden: yes | ||
} | ||
|
||
explore: redshift_db_space { | ||
hidden: yes | ||
} | ||
|
||
explore: redshift_etl_errors { | ||
hidden: yes | ||
} | ||
|
||
explore: redshift_tables { | ||
hidden: yes | ||
persist_for: "0 seconds" | ||
view_label: "[Redshift Tables]" | ||
join: redshift_query_execution { | ||
sql_on: ${redshift_query_execution.table_join_key}=${redshift_tables.table_join_key};; | ||
relationship: one_to_many | ||
type: left_outer | ||
fields: [ | ||
any_restricted_scan, | ||
count_scans, | ||
percent_restricted_scan, | ||
total_bytes_scanned, | ||
total_rows_emitted, | ||
emitted_rows_to_table_rows_ratio | ||
] | ||
} | ||
join: redshift_queries { | ||
sql_on: ${redshift_queries.query} = ${redshift_query_execution.query} ;; | ||
relationship: many_to_one | ||
type: left_outer | ||
fields: [query,start_date, time_executing, substring,count,total_time_executing,time_executing_per_query] | ||
} | ||
} | ||
|
||
explore: redshift_plan_steps { | ||
hidden: yes | ||
persist_for: "0 seconds" | ||
join: redshift_tables { | ||
sql_on: ${redshift_tables.table}=${redshift_plan_steps.table} ;; | ||
type: left_outer | ||
relationship: many_to_one | ||
} | ||
join: redshift_queries { | ||
sql_on: ${redshift_queries.query} = ${redshift_plan_steps.query} ;; | ||
relationship: many_to_one | ||
type: left_outer | ||
} | ||
join: inner_child { | ||
from: redshift_plan_steps | ||
view_label: "Redshift Plan Steps > Inner Child" | ||
sql_on: ${inner_child.query}=${redshift_plan_steps.query} | ||
AND ${inner_child.parent_step} = ${redshift_plan_steps.step} | ||
AND ${inner_child.inner_outer} = 'inner' | ||
AND ${inner_child.parent_step} <> 0;; | ||
type: left_outer | ||
relationship: one_to_one | ||
fields: [table,rows,bytes,total_rows,total_bytes] | ||
} | ||
join: outer_child { | ||
from: redshift_plan_steps | ||
view_label: "Redshift Plan Steps > Outer Child" | ||
sql_on: ${outer_child.query}=${redshift_plan_steps.query} | ||
AND ${outer_child.parent_step} = ${redshift_plan_steps.step} | ||
AND ${outer_child.inner_outer} = 'outer' | ||
AND ${outer_child.parent_step} <> 0;; | ||
type: left_outer | ||
relationship: one_to_one | ||
fields: [table,rows,bytes,total_rows,total_bytes] | ||
} | ||
join: next_1 { | ||
from: redshift_plan_steps | ||
view_label: "Redshift Plan Steps > Parent 1 Operation" | ||
sql_on: ${next_1.query}=${redshift_plan_steps.query} | ||
AND ${next_1.step}=${redshift_plan_steps.parent_step} | ||
AND ${redshift_plan_steps.parent_step}<>0;; | ||
type: left_outer | ||
relationship: one_to_one | ||
fields: [operation,operation_argument,rows] | ||
} | ||
join: next_2 { | ||
from: redshift_plan_steps | ||
view_label: "Redshift Plan Steps > Parent 2 Operation" | ||
sql_on: ${next_2.query}=${next_1.query} | ||
AND ${next_2.step}=${next_1.parent_step} | ||
AND ${next_1.parent_step}<>0;; | ||
type: left_outer | ||
relationship: one_to_one | ||
fields: [operation,operation_argument,rows] | ||
} | ||
} | ||
|
||
explore: redshift_queries { | ||
hidden: yes | ||
persist_for: "0 seconds" | ||
} | ||
|
||
explore: redshift_slices { | ||
hidden: yes | ||
persist_for: "0 seconds" | ||
} | ||
|
||
explore: redshift_query_execution { | ||
hidden: yes | ||
persist_for: "0 seconds" | ||
fields: [ALL_FIELDS*, -redshift_query_execution.emitted_rows_to_table_rows_ratio] | ||
} |
Oops, something went wrong.