|
5 | 5 | { |
6 | 6 | "id": 6370727016503428, |
7 | 7 | "definition": { |
8 | | - "title": "Click here to see the documentation for this dashboard!", |
| 8 | + "title": "Open this to see the documentation for this dashboard!", |
9 | 9 | "background_color": "vivid_blue", |
10 | 10 | "show_title": true, |
11 | 11 | "type": "group", |
|
15 | 15 | "id": 5169947781850282, |
16 | 16 | "definition": { |
17 | 17 | "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", |
19 | 19 | "background_color": "white", |
20 | | - "font_size": "16", |
| 20 | + "font_size": "14", |
21 | 21 | "text_align": "left", |
22 | 22 | "vertical_align": "top", |
23 | 23 | "show_tick": false, |
|
29 | 29 | "x": 0, |
30 | 30 | "y": 0, |
31 | 31 | "width": 12, |
32 | | - "height": 3 |
| 32 | + "height": 7 |
33 | 33 | } |
34 | 34 | } |
35 | 35 | ] |
|
38 | 38 | "x": 0, |
39 | 39 | "y": 0, |
40 | 40 | "width": 12, |
41 | | - "height": 1 |
| 41 | + "height": 8 |
42 | 42 | } |
43 | 43 | }, |
44 | 44 | { |
|
101 | 101 | "title_size": "16", |
102 | 102 | "title_align": "left", |
103 | 103 | "show_legend": false, |
104 | | - "legend_layout": "auto", |
| 104 | + "legend_layout": "vertical", |
105 | 105 | "legend_columns": [ |
106 | | - "avg", |
107 | | - "min", |
108 | | - "max", |
109 | | - "value", |
110 | | - "sum" |
| 106 | + "value" |
111 | 107 | ], |
112 | 108 | "type": "timeseries", |
113 | 109 | "requests": [ |
|
190 | 186 | }, |
191 | 187 | "layout": { |
192 | 188 | "x": 0, |
193 | | - "y": 1, |
| 189 | + "y": 8, |
194 | 190 | "width": 12, |
195 | | - "height": 10 |
| 191 | + "height": 1 |
196 | 192 | } |
197 | 193 | }, |
198 | 194 | { |
|
344 | 340 | }, |
345 | 341 | "layout": { |
346 | 342 | "x": 0, |
347 | | - "y": 11, |
| 343 | + "y": 9, |
348 | 344 | "width": 12, |
349 | 345 | "height": 1 |
350 | 346 | } |
351 | 347 | }, |
352 | 348 | { |
353 | 349 | "id": 5988093184398876, |
354 | 350 | "definition": { |
355 | | - "title": "Team Specific Metrics", |
| 351 | + "title": "Packwerk Usage By Team", |
356 | 352 | "title_align": "center", |
357 | 353 | "background_color": "vivid_orange", |
358 | 354 | "show_title": true, |
|
412 | 408 | "formula": "(query1 + query3) / (query2 + query1 + query3) * 100", |
413 | 409 | "limit": { |
414 | 410 | "count": 500, |
415 | | - "order": "asc" |
| 411 | + "order": "desc" |
416 | 412 | } |
417 | 413 | } |
418 | 414 | ], |
|
421 | 417 | "data_source": "metrics", |
422 | 418 | "name": "query1", |
423 | 419 | "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" |
425 | 421 | }, |
426 | 422 | { |
427 | 423 | "data_source": "metrics", |
428 | 424 | "name": "query3", |
429 | 425 | "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" |
431 | 427 | }, |
432 | 428 | { |
433 | 429 | "data_source": "metrics", |
434 | 430 | "name": "query2", |
435 | 431 | "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" |
437 | 433 | } |
438 | 434 | ] |
439 | 435 | } |
|
450 | 446 | }, |
451 | 447 | "layout": { |
452 | 448 | "x": 0, |
453 | | - "y": 12, |
| 449 | + "y": 10, |
454 | 450 | "width": 12, |
455 | | - "height": 1 |
| 451 | + "height": 1, |
| 452 | + "is_column_break": true |
456 | 453 | } |
457 | 454 | }, |
458 | 455 | { |
459 | 456 | "id": 3553542546106134, |
460 | 457 | "definition": { |
461 | | - "title": "Overall Packwerk Usage", |
| 458 | + "title": "Overall Packs Usage", |
462 | 459 | "background_color": "vivid_yellow", |
463 | 460 | "show_title": true, |
464 | 461 | "type": "group", |
|
475 | 472 | "legend_columns": [ |
476 | 473 | "value" |
477 | 474 | ], |
| 475 | + "time": {}, |
478 | 476 | "type": "timeseries", |
479 | 477 | "requests": [ |
480 | 478 | { |
|
499 | 497 | }, |
500 | 498 | "display_type": "line" |
501 | 499 | } |
| 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 | + } |
502 | 522 | ] |
503 | 523 | }, |
504 | 524 | "layout": { |
|
825 | 845 | { |
826 | 846 | "data_source": "metrics", |
827 | 847 | "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" |
830 | 850 | } |
831 | 851 | ], |
832 | 852 | "formulas": [ |
|
845 | 865 | "x": 0, |
846 | 866 | "y": 8, |
847 | 867 | "width": 6, |
848 | | - "height": 2 |
| 868 | + "height": 3 |
849 | 869 | } |
850 | 870 | } |
851 | 871 | ] |
852 | 872 | }, |
853 | 873 | "layout": { |
854 | 874 | "x": 0, |
855 | | - "y": 13, |
| 875 | + "y": 11, |
856 | 876 | "width": 12, |
857 | | - "height": 1 |
| 877 | + "height": 12 |
858 | 878 | } |
859 | 879 | } |
860 | 880 | ], |
|
894 | 914 | } |
895 | 915 | ], |
896 | 916 | "layout_type": "ordered", |
897 | | - "notify_list": [], |
| 917 | + "notify_list": [ |
| 918 | + "alex.evanczuk@gusto.com" |
| 919 | + ], |
898 | 920 | "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 | + }, |
899 | 936 | { |
900 | 937 | "name": "Wallet Experience", |
901 | 938 | "template_variables": [ |
|
0 commit comments