Skip to content

Commit f41e345

Browse files
author
Alex Evanczuk
committed
update docs/dashboard.json
1 parent 81922df commit f41e345

File tree

1 file changed

+65
-28
lines changed

1 file changed

+65
-28
lines changed

docs/dashboard.json

Lines changed: 65 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"id": 6370727016503428,
77
"definition": {
8-
"title": "Click here to see the documentation for this dashboard!",
8+
"title": "Open this to see the documentation for this dashboard!",
99
"background_color": "vivid_blue",
1010
"show_title": true,
1111
"type": "group",
@@ -15,9 +15,9 @@
1515
"id": 5169947781850282,
1616
"definition": {
1717
"type": "note",
18-
"content": "At the top, there are some template variables you can set to filter the entire dashboard by...\n\n- *app*: You can change this to HI (*hawaiianice*) or ZP (*zenpayroll*). Note if this is not set, you may see double-counting on some widgets.\n- *team*, e.g. `payments`\n- *package*: e.g. `packs/background_jobs`\n- *violation_type*: e.g. `dependency`, `privacy`\n- *max_enforcements*: By setting this to `true`, you will get the metrics as if `enforce_privacy` and `enforce_dependencies` were turned on for all packages.\n\nPro-tip: Click \"split graph\" in the \"full-screen\" mode of a widget to see a graph broken up by team, violation type, or package. Here's an [example (violations over time)](https://app.datadoghq.com/dashboard/s3q-cb3-bed?fullscreen_end_ts=1683557460383&fullscreen_paused=false&fullscreen_section=split%20graph&fullscreen_start_ts=1683543060383&fullscreen_widget=452601886481639&from_ts=1683543021000&to_ts=1683557421000&live=true)\n\nMore information at [https://go/packs](https://docs.google.com/document/d/1OGYqV1pt1r6g6LimCDs8RSIR7hBZ7BVO1yohk2Jnu0M/edit#heading=h.4cufcvb5oqvd)",
18+
"content": "# Template Variables\nAt the top, there are some template variables you can set to filter the entire dashboard by...\n\n| Key | Default | Examples |\n|---|---|---|\n| *app* (required) | `zenpayroll` | `hawaiianice`, `zenpayroll` |\n| *max_enforcements* | `false` | `false`, `true` |\n| *package* | `*` | `packs/background_jobs` |\n| *team* | `*` | `payments` |\n| *violation_type* | `dependency`,`privacy` | `architecture`,`visibility` |\n\nFor `max_enforcement`, \n - `false` means: Violation counts without changing `enforce_x` in `package.yml` files. Used to track violations we care about.\n - `true` means: Violation counts after changing `enforce_x` to `true` for all packages. Used for \"what if\" scenarios.\n\n# Pro-Tip: Split graph by variables\nClick \"split graph\" in the \"full-screen\" mode of a widget to see a graph broken up by team, violation type, or package. Here's an [example (violations over time)](https://app.datadoghq.com/dashboard/s3q-cb3-bed?fullscreen_end_ts=1683557460383&fullscreen_paused=false&fullscreen_section=split%20graph&fullscreen_start_ts=1683543060383&fullscreen_widget=452601886481639&from_ts=1683543021000&to_ts=1683557421000&live=true).\n\n# Data Completeness\nNote since data is fresh, we are missing change counts and line graphs show dots or otherwise minimal data.\n\n# Additional Documentation\nMore information at [https://go/packs](https://docs.google.com/document/d/1OGYqV1pt1r6g6LimCDs8RSIR7hBZ7BVO1yohk2Jnu0M/edit#heading=h.4cufcvb5oqvd)\n",
1919
"background_color": "white",
20-
"font_size": "16",
20+
"font_size": "14",
2121
"text_align": "left",
2222
"vertical_align": "top",
2323
"show_tick": false,
@@ -29,7 +29,7 @@
2929
"x": 0,
3030
"y": 0,
3131
"width": 12,
32-
"height": 3
32+
"height": 7
3333
}
3434
}
3535
]
@@ -38,7 +38,7 @@
3838
"x": 0,
3939
"y": 0,
4040
"width": 12,
41-
"height": 1
41+
"height": 8
4242
}
4343
},
4444
{
@@ -101,13 +101,9 @@
101101
"title_size": "16",
102102
"title_align": "left",
103103
"show_legend": false,
104-
"legend_layout": "auto",
104+
"legend_layout": "vertical",
105105
"legend_columns": [
106-
"avg",
107-
"min",
108-
"max",
109-
"value",
110-
"sum"
106+
"value"
111107
],
112108
"type": "timeseries",
113109
"requests": [
@@ -190,9 +186,9 @@
190186
},
191187
"layout": {
192188
"x": 0,
193-
"y": 1,
189+
"y": 8,
194190
"width": 12,
195-
"height": 10
191+
"height": 1
196192
}
197193
},
198194
{
@@ -344,15 +340,15 @@
344340
},
345341
"layout": {
346342
"x": 0,
347-
"y": 11,
343+
"y": 9,
348344
"width": 12,
349345
"height": 1
350346
}
351347
},
352348
{
353349
"id": 5988093184398876,
354350
"definition": {
355-
"title": "Team Specific Metrics",
351+
"title": "Packwerk Usage By Team",
356352
"title_align": "center",
357353
"background_color": "vivid_orange",
358354
"show_title": true,
@@ -412,7 +408,7 @@
412408
"formula": "(query1 + query3) / (query2 + query1 + query3) * 100",
413409
"limit": {
414410
"count": 500,
415-
"order": "asc"
411+
"order": "desc"
416412
}
417413
}
418414
],
@@ -421,19 +417,19 @@
421417
"data_source": "metrics",
422418
"name": "query1",
423419
"query": "avg:modularization.by_team.packwerk_checkers.true.count{$app,$team,$package,$max_enforcements,$violation_type} by {team,violation_type}",
424-
"aggregator": "avg"
420+
"aggregator": "last"
425421
},
426422
{
427423
"data_source": "metrics",
428424
"name": "query3",
429425
"query": "avg:modularization.by_team.packwerk_checkers.strict.count{$app,$team,$package,$max_enforcements,$violation_type} by {team,violation_type}",
430-
"aggregator": "avg"
426+
"aggregator": "last"
431427
},
432428
{
433429
"data_source": "metrics",
434430
"name": "query2",
435431
"query": "avg:modularization.by_team.packwerk_checkers.false.count{$app,$team,$package,$max_enforcements,$violation_type} by {team,violation_type}",
436-
"aggregator": "avg"
432+
"aggregator": "last"
437433
}
438434
]
439435
}
@@ -450,15 +446,16 @@
450446
},
451447
"layout": {
452448
"x": 0,
453-
"y": 12,
449+
"y": 10,
454450
"width": 12,
455-
"height": 1
451+
"height": 1,
452+
"is_column_break": true
456453
}
457454
},
458455
{
459456
"id": 3553542546106134,
460457
"definition": {
461-
"title": "Overall Packwerk Usage",
458+
"title": "Overall Packs Usage",
462459
"background_color": "vivid_yellow",
463460
"show_title": true,
464461
"type": "group",
@@ -475,6 +472,7 @@
475472
"legend_columns": [
476473
"value"
477474
],
475+
"time": {},
478476
"type": "timeseries",
479477
"requests": [
480478
{
@@ -499,6 +497,28 @@
499497
},
500498
"display_type": "line"
501499
}
500+
],
501+
"custom_links": [
502+
{
503+
"override_label": "containers",
504+
"is_hidden": true
505+
},
506+
{
507+
"override_label": "hosts",
508+
"is_hidden": true
509+
},
510+
{
511+
"override_label": "logs",
512+
"is_hidden": true
513+
},
514+
{
515+
"override_label": "traces",
516+
"is_hidden": true
517+
},
518+
{
519+
"override_label": "profiles",
520+
"is_hidden": true
521+
}
502522
]
503523
},
504524
"layout": {
@@ -825,8 +845,8 @@
825845
{
826846
"data_source": "metrics",
827847
"name": "query3",
828-
"query": "avg:modularization.by_package.depended_on.count{$app,$package,$team} by {app,package}",
829-
"aggregator": "avg"
848+
"query": "max:modularization.by_package.depended_on.count{$app,$package,$team} by {app,package}",
849+
"aggregator": "last"
830850
}
831851
],
832852
"formulas": [
@@ -845,16 +865,16 @@
845865
"x": 0,
846866
"y": 8,
847867
"width": 6,
848-
"height": 2
868+
"height": 3
849869
}
850870
}
851871
]
852872
},
853873
"layout": {
854874
"x": 0,
855-
"y": 13,
875+
"y": 11,
856876
"width": 12,
857-
"height": 1
877+
"height": 12
858878
}
859879
}
860880
],
@@ -894,8 +914,25 @@
894914
}
895915
],
896916
"layout_type": "ordered",
897-
"notify_list": [],
917+
"notify_list": [
918+
"alex.evanczuk@gusto.com"
919+
],
898920
"template_variable_presets": [
921+
{
922+
"name": "Growth",
923+
"template_variables": [
924+
{
925+
"name": "team",
926+
"values": [
927+
"acquisition",
928+
"accountants_growth",
929+
"expansion",
930+
"growth_foundation",
931+
"onboarding"
932+
]
933+
}
934+
]
935+
},
899936
{
900937
"name": "Wallet Experience",
901938
"template_variables": [

0 commit comments

Comments
 (0)