|
68 | 68 | "value": 172800 |
69 | 69 | } |
70 | 70 | ], |
71 | | - "valueMappings": [], |
| 71 | + "valueMappings": [ |
| 72 | + { |
| 73 | + "from": "", |
| 74 | + "id": 1, |
| 75 | + "operator": "", |
| 76 | + "text": "1", |
| 77 | + "to": "", |
| 78 | + "type": 1, |
| 79 | + "value": "121231234" |
| 80 | + } |
| 81 | + ], |
72 | 82 | "valueOptions": { |
73 | 83 | "decimals": 1, |
74 | 84 | "prefix": "", |
75 | 85 | "stat": "mean", |
76 | 86 | "suffix": "", |
77 | | - "unit": "dthms" |
| 87 | + "unit": "dtdurations" |
78 | 88 | } |
79 | 89 | }, |
80 | 90 | "pluginVersion": "6.1.4", |
81 | 91 | "targets": [ |
82 | 92 | { |
83 | 93 | "refId": "A", |
84 | | - "target": "github.*.*.pull_requests.time_to_merge" |
| 94 | + "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
85 | 95 | } |
86 | 96 | ], |
87 | 97 | "timeFrom": "now/M", |
88 | 98 | "timeShift": null, |
89 | | - "title": "Current Month", |
| 99 | + "title": "Current Month - All Repositories", |
90 | 100 | "type": "gauge" |
91 | 101 | }, |
92 | 102 | { |
|
95 | 105 | "dashLength": 10, |
96 | 106 | "dashes": false, |
97 | 107 | "datasource": "Graphite", |
| 108 | + "decimals": 2, |
98 | 109 | "description": "Pull request time to merge: Days elapsed between the creation and merge of a pull request.", |
99 | 110 | "fill": 1, |
100 | 111 | "gridPos": { |
101 | 112 | "h": 8, |
102 | 113 | "w": 18, |
103 | 114 | "x": 0, |
104 | | - "y": 12 |
| 115 | + "y": 11 |
105 | 116 | }, |
106 | 117 | "hideTimeOverride": true, |
107 | 118 | "id": 16, |
108 | 119 | "legend": { |
109 | | - "avg": false, |
| 120 | + "alignAsTable": true, |
| 121 | + "avg": true, |
110 | 122 | "current": false, |
| 123 | + "hideEmpty": false, |
| 124 | + "hideZero": false, |
111 | 125 | "max": false, |
112 | 126 | "min": false, |
113 | | - "show": false, |
| 127 | + "rightSide": true, |
| 128 | + "show": true, |
114 | 129 | "total": false, |
115 | | - "values": false |
| 130 | + "values": true |
116 | 131 | }, |
117 | 132 | "lines": true, |
118 | 133 | "linewidth": 1, |
|
129 | 144 | "targets": [ |
130 | 145 | { |
131 | 146 | "refId": "A", |
132 | | - "target": "summarize(github.*.*.pull_requests.time_to_merge, '1w', 'avg')" |
| 147 | + "target": "aliasByNode(summarize(github.*.*.pull_requests.time_to_merge, '1w', 'avg'), 2)" |
133 | 148 | } |
134 | 149 | ], |
135 | 150 | "thresholds": [], |
|
180 | 195 | "h": 8, |
181 | 196 | "w": 6, |
182 | 197 | "x": 0, |
183 | | - "y": 20 |
| 198 | + "y": 19 |
184 | 199 | }, |
185 | 200 | "hideTimeOverride": true, |
186 | 201 | "id": 8, |
|
221 | 236 | "targets": [ |
222 | 237 | { |
223 | 238 | "refId": "A", |
224 | | - "target": "github.*.*.pull_requests.time_to_merge" |
| 239 | + "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
225 | 240 | } |
226 | 241 | ], |
227 | 242 | "timeFrom": "now/M", |
228 | 243 | "timeShift": "1M/M", |
229 | | - "title": "Previous Month", |
| 244 | + "title": "Previous Month - All Repositories", |
230 | 245 | "type": "gauge" |
231 | 246 | }, |
232 | 247 | { |
|
236 | 251 | "h": 8, |
237 | 252 | "w": 6, |
238 | 253 | "x": 6, |
239 | | - "y": 20 |
| 254 | + "y": 19 |
240 | 255 | }, |
241 | 256 | "hideTimeOverride": true, |
242 | 257 | "id": 6, |
|
277 | 292 | "targets": [ |
278 | 293 | { |
279 | 294 | "refId": "A", |
280 | | - "target": "github.*.*.pull_requests.time_to_merge" |
| 295 | + "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
281 | 296 | } |
282 | 297 | ], |
283 | 298 | "timeFrom": "now/M", |
284 | 299 | "timeShift": "2M/M", |
285 | | - "title": "Two Months ago", |
| 300 | + "title": "Two Months ago - All Repositories", |
286 | 301 | "type": "gauge" |
287 | 302 | }, |
288 | 303 | { |
|
292 | 307 | "h": 8, |
293 | 308 | "w": 6, |
294 | 309 | "x": 12, |
295 | | - "y": 20 |
| 310 | + "y": 19 |
296 | 311 | }, |
297 | 312 | "hideTimeOverride": true, |
298 | 313 | "id": 12, |
|
333 | 348 | "targets": [ |
334 | 349 | { |
335 | 350 | "refId": "A", |
336 | | - "target": "github.*.*.pull_requests.time_to_merge" |
| 351 | + "target": "averageSeries(github.*.*.pull_requests.time_to_merge)" |
337 | 352 | } |
338 | 353 | ], |
339 | 354 | "timeFrom": "now/M", |
340 | 355 | "timeShift": "3M/M", |
341 | | - "title": "Three Months ago", |
| 356 | + "title": "Three Months ago - All Repositories", |
342 | 357 | "type": "gauge" |
343 | 358 | } |
344 | 359 | ], |
|
350 | 365 | "list": [] |
351 | 366 | }, |
352 | 367 | "time": { |
353 | | - "from": "now/d", |
354 | | - "to": "now/d" |
| 368 | + "from": "now-90d", |
| 369 | + "to": "now" |
355 | 370 | }, |
356 | 371 | "timepicker": { |
357 | 372 | "refresh_intervals": [ |
|
0 commit comments