Skip to content

Commit

Permalink
refactor: Tidy up Operator Dashboard
Browse files Browse the repository at this point in the history
- Make names consistent
- Remove unusable or useless charts
- Add a "slowest ClickHouse queries" chart
  • Loading branch information
bmtcril committed Oct 10, 2023
1 parent 5cc6249 commit 6c9f957
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 163 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!.gitignore
TODO
__pycache__
*.DS_Store*
*.egg-info/
/build/
/dist/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_file_name: Course_Registrations_Over_Time.yaml
_file_name: Course_Enrollments_Over_Time.yaml
cache_timeout: null
certification_details: null
certified_by: null
Expand All @@ -16,14 +16,20 @@ params:
operatorId: EQUALS
sqlExpression: null
subject: enrollment_status
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: enrollment_status_date
annotation_layers: []
color_scheme: supersetColors
comparison_type: values
datasource: 2__table
dashboards:
- 14
datasource: 1__table
extra_form_data: {}
forecastInterval: 0.8
forecastPeriods: 10
granularity_sqla: enrollment_status_date
groupby:
- enrollment_status
legendOrientation: top
Expand Down Expand Up @@ -55,16 +61,23 @@ params:
optionName: metric_iapetcrge8_4fkcsr2b3nj
sqlExpression: null
only_total: true
opacity: 0.2
order_desc: true
rich_tooltip: true
row_limit: 10000
seriesType: line
show_empty_columns: true
show_legend: true
slice_id: 451
slice_id: 272
sort_series_type: sum
time_grain_sqla: P1D
time_range: No filter
tooltipTimeFormat: smart_date
truncate_metric: true
viz_type: echarts_timeseries_line
x_axis: enrollment_status_date
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
x_axis_time_format: smart_date
x_axis_title_margin: 15
y_axis_bounds:
Expand All @@ -75,7 +88,7 @@ params:
y_axis_title_margin: 15
y_axis_title_position: Left
query_context: null
slice_name: Course Registrations Over Time
slice_name: Course Enrollments Over Time
uuid: bf4f4671-c276-4185-9b9a-b10864efea6c
version: 1.0.0
viz_type: echarts_timeseries_line
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
_file_name: Slowest_ClickHouse_Queries.yaml
cache_timeout: null
certification_details: null
certified_by: null
dataset_uuid: e8748c23-6220-413d-bd61-de8306163e10
description: null
params:
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: event_time
all_columns:
- event_time
- duration_secs
- read_rows
- memory_usage_kb
- query
color_pn: true
dashboards: []
datasource: 21__table
extra_form_data: {}
groupby: []
metrics: []
order_by_cols:
- '["duration_secs", false]'
order_desc: true
percent_metrics: []
query_mode: raw
row_limit: 100
server_page_length: 10
show_cell_bars: true
table_timestamp_format: smart_date
temporal_columns_lookup:
event_time: true
time_grain_sqla: P1D
viz_type: table
query_context: null
slice_name: Slowest ClickHouse Queries
uuid: 953af3e5-8fc6-441e-bff1-22987735edf0
version: 1.0.0
viz_type: table
Loading

0 comments on commit 6c9f957

Please sign in to comment.