From cc8611454688e7baeac66d577956edc24ad68fe7 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Thu, 26 Oct 2023 16:21:26 +1030 Subject: [PATCH] feat: adds "Most-used Charts" to Superset Usage dashboard --- ...perset_top_charts_by_action_count_595.yaml | 71 +++++++++++++++++++ .../dashboards/monitoring.superset.yaml | 33 ++++++++- 2 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 tutoraspects/templates/openedx-assets/assets/charts/monitoring.superset_top_charts_by_action_count_595.yaml diff --git a/tutoraspects/templates/openedx-assets/assets/charts/monitoring.superset_top_charts_by_action_count_595.yaml b/tutoraspects/templates/openedx-assets/assets/charts/monitoring.superset_top_charts_by_action_count_595.yaml new file mode 100644 index 000000000..4183458cb --- /dev/null +++ b/tutoraspects/templates/openedx-assets/assets/charts/monitoring.superset_top_charts_by_action_count_595.yaml @@ -0,0 +1,71 @@ +_file_name: monitoring.superset_top_charts_by_action_count_595.yaml +slice_name: Most-used Charts +viz_type: table +description: Chart showing the number of Superset actions taken on each chart in the selected time period. +params: + adhoc_filters: + - clause: WHERE + comparator: null + expressionType: SIMPLE + filterOptionName: filter_l6m8rb1vslf_a07sl2fma45 + isExtra: false + isNew: false + operator: IS NOT NULL + operatorId: IS_NOT_NULL + sqlExpression: null + subject: slice_id + all_columns: [] + color_pn: false + conditional_formatting: [] + datasource: 473__table + extra_form_data: {} + granularity_sqla: action_date + groupby: + - slice_name + include_search: true + metrics: + - aggregate: SUM + column: + certification_details: null + certified_by: null + column_name: action_count + description: null + expression: null + filterable: true + groupby: true + id: 47205 + is_certified: false + is_dttm: false + python_date_format: null + type: INT + type_generic: 0 + verbose_name: null + warning_markdown: null + expressionType: SIMPLE + hasCustomLabel: false + isNew: false + label: SUM(action_count) + optionName: metric_s8q9hgt4ktk_u149bx4eoq8 + sqlExpression: null + order_by_cols: [] + order_desc: true + page_length: 20 + percent_metrics: [] + query_mode: aggregate + row_limit: 100 + server_page_length: 10 + show_cell_bars: false + slice_id: 594 + table_timestamp_format: smart_date + time_grain_sqla: P1D + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: table +query_context: null +cache_timeout: null +uuid: 9d5f69e8-f335-42a0-bbfa-272f43d74ad0 +version: 1.0.0 +dataset_uuid: c33517b3-daa5-4fac-b7f2-ae012b999d12 diff --git a/tutoraspects/templates/openedx-assets/assets/dashboards/monitoring.superset.yaml b/tutoraspects/templates/openedx-assets/assets/dashboards/monitoring.superset.yaml index 36433edc2..8a3852019 100644 --- a/tutoraspects/templates/openedx-assets/assets/dashboards/monitoring.superset.yaml +++ b/tutoraspects/templates/openedx-assets/assets/dashboards/monitoring.superset.yaml @@ -16,7 +16,7 @@ position: height: 39 sliceName: monitoring.superset_charts_by_type uuid: 84393abe-04ab-4084-a195-116ad568badd - width: 8 + width: 12 parents: - ROOT_ID - GRID_ID @@ -73,6 +73,22 @@ position: - TAB-4eeLv-Y4_ - ROW-hy1TP2JVW type: CHART + CHART-hmqz07XRxF: + children: [] + id: CHART-hmqz07XRxF + meta: + chartId: 635 + height: 50 + sliceName: monitoring.superset_top_charts_by_action_count + uuid: 9d5f69e8-f335-42a0-bbfa-272f43d74ad0 + width: 8 + parents: + - ROOT_ID + - GRID_ID + - TABS-y6hV6lvRWK + - TAB-4eeLv-Y4_ + - ROW-hy1TP2JVW + type: CHART CHART-kpQQbyTGzF: children: [] id: CHART-kpQQbyTGzF @@ -189,6 +205,18 @@ position: - GRID_ID id: ROOT_ID type: ROOT + ROW-3IsAIVz071: + children: + - CHART-RhGZahacVK + id: ROW-3IsAIVz071 + meta: + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + - TABS-y6hV6lvRWK + - TAB-4eeLv-Y4_ + type: ROW ROW-A2SHf-1fx6: children: - COLUMN-85pvSdbZT8 @@ -231,7 +259,7 @@ position: ROW-hy1TP2JVW: children: - CHART-dV984MpOZE - - CHART-RhGZahacVK + - CHART-hmqz07XRxF id: ROW-hy1TP2JVW meta: background: BACKGROUND_TRANSPARENT @@ -244,6 +272,7 @@ position: TAB-4eeLv-Y4_: children: - ROW-hy1TP2JVW + - ROW-3IsAIVz071 id: TAB-4eeLv-Y4_ meta: defaultText: Tab title