|
35 | 35 | }, |
36 | 36 | { |
37 | 37 | "datasource": "Graphite", |
38 | | - "description": "Pull request time to merge: Days elapsed between the creation and merge of a pull request.", |
| 38 | + "description": "", |
39 | 39 | "gridPos": { |
40 | 40 | "h": 8, |
41 | 41 | "w": 18, |
|
91 | 91 | "targets": [ |
92 | 92 | { |
93 | 93 | "refId": "A", |
94 | | - "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
| 94 | + "target": "averageSeries(github.*.*.pull_requests.*.time_to_merge)" |
95 | 95 | } |
96 | 96 | ], |
97 | 97 | "timeFrom": "now/M", |
|
102 | 102 | { |
103 | 103 | "aliasColors": {}, |
104 | 104 | "bars": false, |
| 105 | + "cacheTimeout": "", |
105 | 106 | "dashLength": 10, |
106 | 107 | "dashes": false, |
107 | 108 | "datasource": "Graphite", |
108 | 109 | "decimals": 2, |
109 | | - "description": "Pull request time to merge: Days elapsed between the creation and merge of a pull request.", |
110 | 110 | "fill": 1, |
111 | 111 | "gridPos": { |
112 | 112 | "h": 8, |
|
115 | 115 | "y": 11 |
116 | 116 | }, |
117 | 117 | "hideTimeOverride": true, |
| 118 | + "id": 18, |
| 119 | + "legend": { |
| 120 | + "alignAsTable": true, |
| 121 | + "avg": true, |
| 122 | + "current": false, |
| 123 | + "max": false, |
| 124 | + "min": false, |
| 125 | + "rightSide": true, |
| 126 | + "show": true, |
| 127 | + "total": false, |
| 128 | + "values": true |
| 129 | + }, |
| 130 | + "lines": true, |
| 131 | + "linewidth": 1, |
| 132 | + "links": [], |
| 133 | + "nullPointMode": "null", |
| 134 | + "percentage": false, |
| 135 | + "pointradius": 2, |
| 136 | + "points": false, |
| 137 | + "renderer": "flot", |
| 138 | + "seriesOverrides": [], |
| 139 | + "spaceLength": 10, |
| 140 | + "stack": false, |
| 141 | + "steppedLine": false, |
| 142 | + "targets": [ |
| 143 | + { |
| 144 | + "refId": "A", |
| 145 | + "target": "aliasByMetric(smartSummarize(groupByNode(github.*.*.pull_requests.*.time_to_merge, 2, 'sum'), '1w', 'avg'))", |
| 146 | + "textEditor": false |
| 147 | + } |
| 148 | + ], |
| 149 | + "thresholds": [], |
| 150 | + "timeFrom": "3M", |
| 151 | + "timeRegions": [], |
| 152 | + "timeShift": null, |
| 153 | + "title": "Trend over the last 3 month by repository", |
| 154 | + "tooltip": { |
| 155 | + "shared": true, |
| 156 | + "sort": 0, |
| 157 | + "value_type": "individual" |
| 158 | + }, |
| 159 | + "type": "graph", |
| 160 | + "xaxis": { |
| 161 | + "buckets": null, |
| 162 | + "mode": "time", |
| 163 | + "name": null, |
| 164 | + "show": true, |
| 165 | + "values": [] |
| 166 | + }, |
| 167 | + "yaxes": [ |
| 168 | + { |
| 169 | + "format": "dtdurations", |
| 170 | + "label": null, |
| 171 | + "logBase": 1, |
| 172 | + "max": null, |
| 173 | + "min": null, |
| 174 | + "show": true |
| 175 | + }, |
| 176 | + { |
| 177 | + "format": "short", |
| 178 | + "label": null, |
| 179 | + "logBase": 1, |
| 180 | + "max": null, |
| 181 | + "min": null, |
| 182 | + "show": false |
| 183 | + } |
| 184 | + ], |
| 185 | + "yaxis": { |
| 186 | + "align": false, |
| 187 | + "alignLevel": null |
| 188 | + } |
| 189 | + }, |
| 190 | + { |
| 191 | + "aliasColors": {}, |
| 192 | + "bars": false, |
| 193 | + "dashLength": 10, |
| 194 | + "dashes": false, |
| 195 | + "datasource": "Graphite", |
| 196 | + "decimals": 2, |
| 197 | + "description": "### Pull Request Sizes\n\nThe pull request size calculated based on the total lines of code changed (`total additions + total deletions`).\n\n| Name | Description |\n| ---------- | ---------------------------------------- |\n| `size_XS` | Denotes a PR that changes 0-9 lines. |\n| `size_S` | Denotes a PR that changes 10-29 lines. |\n| `size_m` | Denotes a PR that changes 30-99 lines. |\n| `size_l` | Denotes a PR that changes 100-499 lines. |\n| `size_xl` | Denotes a PR that changes 500-999 lines. |\n| `size_xxl` | Denotes a PR that changes 1000+ lines. |", |
| 198 | + "fill": 1, |
| 199 | + "gridPos": { |
| 200 | + "h": 8, |
| 201 | + "w": 18, |
| 202 | + "x": 0, |
| 203 | + "y": 19 |
| 204 | + }, |
| 205 | + "hideTimeOverride": true, |
118 | 206 | "id": 16, |
119 | 207 | "legend": { |
120 | 208 | "alignAsTable": true, |
|
126 | 214 | "min": false, |
127 | 215 | "rightSide": true, |
128 | 216 | "show": true, |
| 217 | + "sort": "avg", |
| 218 | + "sortDesc": true, |
129 | 219 | "total": false, |
130 | 220 | "values": true |
131 | 221 | }, |
|
144 | 234 | "targets": [ |
145 | 235 | { |
146 | 236 | "refId": "A", |
147 | | - "target": "aliasByNode(summarize(github.*.*.pull_requests.time_to_merge, '1w', 'avg'), 2)" |
| 237 | + "target": "groupByNode(summarize(github.*.*.pull_requests.*.time_to_merge, '1w', 'avg'), 4, 'sum')" |
148 | 238 | } |
149 | 239 | ], |
150 | 240 | "thresholds": [], |
151 | | - "timeFrom": "now/M", |
| 241 | + "timeFrom": "3M", |
152 | 242 | "timeRegions": [], |
153 | | - "timeShift": "1M/M", |
154 | | - "title": "Trend over the last 4 weeks", |
| 243 | + "timeShift": null, |
| 244 | + "title": "Trend over the last 3 month by PR size", |
155 | 245 | "tooltip": { |
156 | 246 | "shared": true, |
157 | 247 | "sort": 0, |
|
180 | 270 | "logBase": 1, |
181 | 271 | "max": null, |
182 | 272 | "min": null, |
183 | | - "show": true |
| 273 | + "show": false |
184 | 274 | } |
185 | 275 | ], |
186 | 276 | "yaxis": { |
|
195 | 285 | "h": 8, |
196 | 286 | "w": 6, |
197 | 287 | "x": 0, |
198 | | - "y": 19 |
| 288 | + "y": 27 |
199 | 289 | }, |
200 | 290 | "hideTimeOverride": true, |
201 | 291 | "id": 8, |
|
204 | 294 | "maxValue": "172800", |
205 | 295 | "minValue": 0, |
206 | 296 | "orientation": "auto", |
207 | | - "showThresholdLabels": true, |
| 297 | + "showThresholdLabels": false, |
208 | 298 | "showThresholdMarkers": true, |
209 | 299 | "thresholds": [ |
210 | 300 | { |
|
236 | 326 | "targets": [ |
237 | 327 | { |
238 | 328 | "refId": "A", |
239 | | - "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
| 329 | + "target": "averageSeries(github.*.*.pull_requests.*.time_to_merge)" |
240 | 330 | } |
241 | 331 | ], |
242 | 332 | "timeFrom": "now/M", |
|
251 | 341 | "h": 8, |
252 | 342 | "w": 6, |
253 | 343 | "x": 6, |
254 | | - "y": 19 |
| 344 | + "y": 27 |
255 | 345 | }, |
256 | 346 | "hideTimeOverride": true, |
257 | 347 | "id": 6, |
|
292 | 382 | "targets": [ |
293 | 383 | { |
294 | 384 | "refId": "A", |
295 | | - "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
| 385 | + "target": "averageSeries(github.*.*.pull_requests.*.time_to_merge)" |
296 | 386 | } |
297 | 387 | ], |
298 | 388 | "timeFrom": "now/M", |
|
307 | 397 | "h": 8, |
308 | 398 | "w": 6, |
309 | 399 | "x": 12, |
310 | | - "y": 19 |
| 400 | + "y": 27 |
311 | 401 | }, |
312 | 402 | "hideTimeOverride": true, |
313 | 403 | "id": 12, |
|
316 | 406 | "maxValue": "172800", |
317 | 407 | "minValue": 0, |
318 | 408 | "orientation": "auto", |
319 | | - "showThresholdLabels": true, |
| 409 | + "showThresholdLabels": false, |
320 | 410 | "showThresholdMarkers": true, |
321 | 411 | "thresholds": [ |
322 | 412 | { |
|
348 | 438 | "targets": [ |
349 | 439 | { |
350 | 440 | "refId": "A", |
351 | | - "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
| 441 | + "target": "averageSeries(github.*.*.pull_requests.*.time_to_merge)" |
352 | 442 | } |
353 | 443 | ], |
354 | 444 | "timeFrom": "now/M", |
|
365 | 455 | "list": [] |
366 | 456 | }, |
367 | 457 | "time": { |
368 | | - "from": "now-90d", |
369 | | - "to": "now" |
| 458 | + "from": "now/d", |
| 459 | + "to": "now/d" |
370 | 460 | }, |
371 | 461 | "timepicker": { |
372 | 462 | "refresh_intervals": [ |
|
0 commit comments