forked from looker/block-gcp-billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
billing_by_service.dashboard.lookml
324 lines (324 loc) · 10.9 KB
/
billing_by_service.dashboard.lookml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
- dashboard: billing_by_service
preferred_viewer: dashboards-next
title: Billing By Service
layout: newspaper
elements:
- title: Service Name(s)
name: Service Name(s)
model: block_gcp_billing
explore: gcp_billing_export
type: single_value
fields: [gcp_billing_export_service.service_filter]
limit: 500
query_timezone: America/Los_Angeles
custom_color_enabled: true
custom_color: ''
show_single_value_title: false
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
series_types: {}
listen:
Service: gcp_billing_export_service.description
row: 0
col: 0
width: 9
height: 4
- title: Daily Service Cost 30 Day Comparison
name: Daily Service Cost 30 Day Comparison
model: block_gcp_billing
explore: gcp_billing_export
type: looker_area
fields: [gcp_billing_export.total_cost, gcp_billing_export.usage_start_date]
filters:
gcp_billing_export_project.name: ''
gcp_billing_export.date_filter: 60 days
sorts: [gcp_billing_export.usage_start_date desc]
limit: 500
column_limit: 50
dynamic_fields: [{table_calculation: previous_30_days, label: Previous 30 Days,
expression: 'offset(${gcp_billing_export.total_cost}, 30)', value_format: !!null '',
value_format_name: eur, _kind_hint: measure, _type_hint: number}]
query_timezone: America/Los_Angeles
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: true
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '30'
legend_position: center
label_value_format: ''
series_types: {}
point_style: none
series_colors:
previous_30_days: "#79808C"
gcp_billing_export.total_cost: "#FFD150"
series_labels:
gcp_billing_export.total_cost: Daily Cost
previous_30_days: Daily Cost 30 Days Prior
show_value_labels: false
label_density: 25
x_axis_scale: auto
y_axis_combined: true
show_null_points: true
interpolation: linear
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
ordering: none
show_null_labels: false
listen:
Service: gcp_billing_export_service.description
row: 12
col: 0
width: 24
height: 12
- title: Project Cost Allocation
name: Project Cost Allocation
model: block_gcp_billing
explore: gcp_billing_export
type: looker_bar
fields: [gcp_billing_export.total_cost, project_name_sort.top_10_projects]
filters:
gcp_billing_export_project.name: ''
sorts: [gcp_billing_export.total_cost desc]
limit: 500
color_application:
collection_id: 9eb1107b-fa8a-4e7f-8f44-d408c45e04d2
palette_id: 2ff865a1-1b86-48d2-9573-e58bd7956129
options:
steps: 5
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
y_axes: [{label: '', orientation: bottom, series: [{axisId: gcp_billing_export.total_cost,
id: gcp_billing_export.total_cost, name: Total Cost}], showLabels: false,
showValues: true, valueFormat: "#", unpinAxis: false, tickDensity: default,
tickDensityCustom: 5, type: linear}]
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
series_types: {}
point_style: none
series_colors:
gcp_billing_export.total_cost: "#FFD150"
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
listen:
Service: gcp_billing_export_service.description
Time Period: gcp_billing_export.usage_start_date
row: 0
col: 9
width: 15
height: 12
- title: Service Cost
name: Service Cost
model: block_gcp_billing
explore: gcp_billing_export
type: single_value
fields: [gcp_billing_export.total_cost, gcp_billing_export_credits.total_credit,
gcp_billing_export_service.description, gcp_billing_export_service.service_compare]
sorts: [gcp_billing_export.total_cost desc]
limit: 500
column_limit: 50
dynamic_fields: [{table_calculation: percent_of_all_project_cost, label: Percent
of All Project Cost, expression: 'sum(if(${gcp_billing_export_service.service_compare},
${gcp_billing_export.total_cost}, 0)) / sum(${gcp_billing_export.total_cost})',
value_format: !!null '', value_format_name: percent_2, _kind_hint: measure,
_type_hint: number}, {table_calculation: amount_billed_from_all_projects,
label: Amount Billed From All Projects, expression: 'sum(${gcp_billing_export.total_cost})',
value_format: !!null '', value_format_name: decimal_2, _kind_hint: measure,
_type_hint: number}, {table_calculation: total_cost_of_project, label: Total
Cost of Project, expression: 'sum(if(${gcp_billing_export_service.service_compare},
${gcp_billing_export.total_cost}, 0))', value_format: !!null '', value_format_name: eur,
_kind_hint: measure, _type_hint: number}, {table_calculation: total_credit_applied_to_project,
label: Total Credit Applied to Project, expression: 'sum(if(${gcp_billing_export_service.service_compare},
${gcp_billing_export_credits.total_credit}, 0))', value_format: !!null '',
value_format_name: eur, _kind_hint: measure, _type_hint: number}]
query_timezone: America/Los_Angeles
custom_color_enabled: true
custom_color: ''
show_single_value_title: true
single_value_title: Total Cost after Credits
value_format: ''
show_comparison: true
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
comparison_label: In Credits Applied
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '30'
legend_position: center
label_value_format: ''
series_types: {}
point_style: none
series_colors:
previous_30_days: "#79808C"
series_labels:
gcp_billing_export.total_cost: Daily Cost
previous_30_days: Daily Cost 30 Days Prior
show_value_labels: false
label_density: 25
x_axis_scale: auto
y_axis_combined: true
show_null_points: true
interpolation: linear
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
ordering: none
show_null_labels: false
hidden_fields: [percent_of_all_project_cost, amount_billed_from_all_projects,
gcp_billing_export.total_cost, gcp_billing_export.total_credit, gcp_billing_export_credits.total_credit]
hidden_points_if_no: []
listen:
Service: gcp_billing_export_service.service_comparison
Time Period: gcp_billing_export.usage_start_date
row: 8
col: 0
width: 9
height: 4
- title: Cost vs All Services
name: Cost vs All Services
model: block_gcp_billing
explore: gcp_billing_export
type: single_value
fields: [gcp_billing_export.total_cost, gcp_billing_export_service.description,
gcp_billing_export_service.service_compare]
sorts: [gcp_billing_export.total_cost desc]
limit: 500
column_limit: 50
dynamic_fields: [{table_calculation: percent_of_all_project_cost, label: Percent
of All Project Cost, expression: 'sum(if(${gcp_billing_export_service.service_compare},
${gcp_billing_export.total_cost}, 0)) / sum(${gcp_billing_export.total_cost})',
value_format: !!null '', value_format_name: percent_2, _kind_hint: measure,
_type_hint: number}, {table_calculation: amount_billed_from_all_projects,
label: Amount Billed From All Projects, expression: 'sum(${gcp_billing_export.total_cost})',
value_format: !!null '', value_format_name: decimal_2, _kind_hint: measure,
_type_hint: number}]
query_timezone: America/Los_Angeles
custom_color_enabled: true
custom_color: ''
show_single_value_title: false
value_format: "#0.00% of"
show_comparison: true
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
comparison_label: Billed from All Services in Time Period
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '30'
legend_position: center
label_value_format: ''
series_types: {}
point_style: none
series_colors:
previous_30_days: "#79808C"
series_labels:
gcp_billing_export.total_cost: Daily Cost
previous_30_days: Daily Cost 30 Days Prior
show_value_labels: false
label_density: 25
x_axis_scale: auto
y_axis_combined: true
show_null_points: true
interpolation: linear
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
ordering: none
show_null_labels: false
hidden_fields: [gcp_billing_export.total_cost, gcp_billing_export.total_credit]
listen:
Service: gcp_billing_export_service.service_comparison
Time Period: gcp_billing_export.usage_start_date
row: 4
col: 0
width: 9
height: 4
filters:
- name: Service
title: Service
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
model: block_gcp_billing
explore: gcp_billing_export
listens_to_filters: []
field: gcp_billing_export_service.description
- name: Time Period
title: Time Period
type: date_filter
default_value: 1 months
allow_multiple_values: true
required: false