Skip to content

Commit 4130e79

Browse files
committed
Update Grafana dashboard example and screenshot
1 parent 89f171f commit 4130e79

File tree

4 files changed

+35
-20
lines changed

4 files changed

+35
-20
lines changed

.DS_Store

0 Bytes
Binary file not shown.

data/.DS_Store

6 KB
Binary file not shown.

data/github-pr-metrics.png

60.1 KB
Loading

grafana/dashboards/github-pull-request.json

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,35 @@
6868
"value": 172800
6969
}
7070
],
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+
],
7282
"valueOptions": {
7383
"decimals": 1,
7484
"prefix": "",
7585
"stat": "mean",
7686
"suffix": "",
77-
"unit": "dthms"
87+
"unit": "dtdurations"
7888
}
7989
},
8090
"pluginVersion": "6.1.4",
8191
"targets": [
8292
{
8393
"refId": "A",
84-
"target": "github.*.*.pull_requests.time_to_merge"
94+
"target": "averageSeries(github.*.*.pull_requests.time_to_merge)"
8595
}
8696
],
8797
"timeFrom": "now/M",
8898
"timeShift": null,
89-
"title": "Current Month",
99+
"title": "Current Month - All Repositories",
90100
"type": "gauge"
91101
},
92102
{
@@ -95,24 +105,29 @@
95105
"dashLength": 10,
96106
"dashes": false,
97107
"datasource": "Graphite",
108+
"decimals": 2,
98109
"description": "Pull request time to merge: Days elapsed between the creation and merge of a pull request.",
99110
"fill": 1,
100111
"gridPos": {
101112
"h": 8,
102113
"w": 18,
103114
"x": 0,
104-
"y": 12
115+
"y": 11
105116
},
106117
"hideTimeOverride": true,
107118
"id": 16,
108119
"legend": {
109-
"avg": false,
120+
"alignAsTable": true,
121+
"avg": true,
110122
"current": false,
123+
"hideEmpty": false,
124+
"hideZero": false,
111125
"max": false,
112126
"min": false,
113-
"show": false,
127+
"rightSide": true,
128+
"show": true,
114129
"total": false,
115-
"values": false
130+
"values": true
116131
},
117132
"lines": true,
118133
"linewidth": 1,
@@ -129,7 +144,7 @@
129144
"targets": [
130145
{
131146
"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)"
133148
}
134149
],
135150
"thresholds": [],
@@ -180,7 +195,7 @@
180195
"h": 8,
181196
"w": 6,
182197
"x": 0,
183-
"y": 20
198+
"y": 19
184199
},
185200
"hideTimeOverride": true,
186201
"id": 8,
@@ -221,12 +236,12 @@
221236
"targets": [
222237
{
223238
"refId": "A",
224-
"target": "github.*.*.pull_requests.time_to_merge"
239+
"target": "averageSeries(github.*.*.pull_requests.time_to_merge)"
225240
}
226241
],
227242
"timeFrom": "now/M",
228243
"timeShift": "1M/M",
229-
"title": "Previous Month",
244+
"title": "Previous Month - All Repositories",
230245
"type": "gauge"
231246
},
232247
{
@@ -236,7 +251,7 @@
236251
"h": 8,
237252
"w": 6,
238253
"x": 6,
239-
"y": 20
254+
"y": 19
240255
},
241256
"hideTimeOverride": true,
242257
"id": 6,
@@ -277,12 +292,12 @@
277292
"targets": [
278293
{
279294
"refId": "A",
280-
"target": "github.*.*.pull_requests.time_to_merge"
295+
"target": "averageSeries(github.*.*.pull_requests.time_to_merge)"
281296
}
282297
],
283298
"timeFrom": "now/M",
284299
"timeShift": "2M/M",
285-
"title": "Two Months ago",
300+
"title": "Two Months ago - All Repositories",
286301
"type": "gauge"
287302
},
288303
{
@@ -292,7 +307,7 @@
292307
"h": 8,
293308
"w": 6,
294309
"x": 12,
295-
"y": 20
310+
"y": 19
296311
},
297312
"hideTimeOverride": true,
298313
"id": 12,
@@ -333,12 +348,12 @@
333348
"targets": [
334349
{
335350
"refId": "A",
336-
"target": "github.*.*.pull_requests.time_to_merge"
351+
"target": "averageSeries(github.*.*.pull_requests.time_to_merge)"
337352
}
338353
],
339354
"timeFrom": "now/M",
340355
"timeShift": "3M/M",
341-
"title": "Three Months ago",
356+
"title": "Three Months ago - All Repositories",
342357
"type": "gauge"
343358
}
344359
],
@@ -350,8 +365,8 @@
350365
"list": []
351366
},
352367
"time": {
353-
"from": "now/d",
354-
"to": "now/d"
368+
"from": "now-90d",
369+
"to": "now"
355370
},
356371
"timepicker": {
357372
"refresh_intervals": [

0 commit comments

Comments
 (0)