Skip to content

Commit f2e9523

Browse files
committed
Add Grafana dashboard example
1 parent 0c3b94d commit f2e9523

File tree

3 files changed

+154
-0
lines changed

3 files changed

+154
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Github PR Metrics Graphite Exporter
44

5+
[![Grafana Example](./data/github-pr-metrics.png)](./data/github-pr-metrics.png)
6+
57
This exporter converts raw GitHub pull request data to time series. The exported data points represent the number of seconds elapsed between the creation of the pull request and the merging of the pull request.
68

79
The timestamp is the creation time of the PR.

data/github-pr-metrics.png

25.1 KB
Loading
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"annotations": {
3+
"list": [{
4+
"builtIn": 1,
5+
"datasource": "-- Grafana --",
6+
"enable": true,
7+
"hide": true,
8+
"iconColor": "rgba(0, 211, 255, 1)",
9+
"name": "Annotations & Alerts",
10+
"type": "dashboard"
11+
}]
12+
},
13+
"editable": true,
14+
"gnetId": null,
15+
"graphTooltip": 0,
16+
"id": 1,
17+
"links": [],
18+
"panels": [{
19+
"aliasColors": {},
20+
"bars": false,
21+
"dashLength": 10,
22+
"dashes": false,
23+
"description": "Days elapsed between the creation and merge of a pull request.",
24+
"fill": 2,
25+
"gridPos": {
26+
"h": 13,
27+
"w": 16,
28+
"x": 0,
29+
"y": 0
30+
},
31+
"id": 2,
32+
"legend": {
33+
"alignAsTable": true,
34+
"avg": true,
35+
"current": false,
36+
"hideEmpty": true,
37+
"hideZero": true,
38+
"max": true,
39+
"min": false,
40+
"show": true,
41+
"total": false,
42+
"values": true
43+
},
44+
"lines": true,
45+
"linewidth": 1,
46+
"links": [],
47+
"nullPointMode": "null",
48+
"percentage": false,
49+
"pointradius": 2,
50+
"points": false,
51+
"renderer": "flot",
52+
"seriesOverrides": [],
53+
"spaceLength": 10,
54+
"stack": false,
55+
"steppedLine": false,
56+
"targets": [{
57+
"hide": false,
58+
"refCount": 0,
59+
"refId": "A",
60+
"target": "prs.time_to_merge",
61+
"textEditor": false
62+
}],
63+
"thresholds": [{
64+
"colorMode": "critical",
65+
"fill": true,
66+
"line": true,
67+
"op": "gt",
68+
"value": 86400,
69+
"yaxis": "left"
70+
}],
71+
"timeFrom": null,
72+
"timeRegions": [],
73+
"timeShift": null,
74+
"title": "Github PR Metrics",
75+
"tooltip": {
76+
"shared": true,
77+
"sort": 0,
78+
"value_type": "individual"
79+
},
80+
"transparent": true,
81+
"type": "graph",
82+
"xaxis": {
83+
"buckets": null,
84+
"mode": "time",
85+
"name": null,
86+
"show": true,
87+
"values": []
88+
},
89+
"yaxes": [{
90+
"format": "s",
91+
"label": "Duration",
92+
"logBase": 2,
93+
"max": null,
94+
"min": null,
95+
"show": true
96+
},
97+
{
98+
"decimals": null,
99+
"format": "short",
100+
"label": "",
101+
"logBase": 1,
102+
"max": null,
103+
"min": null,
104+
"show": true
105+
}
106+
],
107+
"yaxis": {
108+
"align": false,
109+
"alignLevel": null
110+
}
111+
}],
112+
"refresh": false,
113+
"schemaVersion": 18,
114+
"style": "dark",
115+
"tags": [],
116+
"templating": {
117+
"list": []
118+
},
119+
"time": {
120+
"from": "2019-03-01T08:09:12.404Z",
121+
"to": "2019-03-31T07:09:12.404Z"
122+
},
123+
"timepicker": {
124+
"refresh_intervals": [
125+
"5s",
126+
"10s",
127+
"30s",
128+
"1m",
129+
"5m",
130+
"15m",
131+
"30m",
132+
"1h",
133+
"2h",
134+
"1d"
135+
],
136+
"time_options": [
137+
"5m",
138+
"15m",
139+
"1h",
140+
"6h",
141+
"12h",
142+
"24h",
143+
"2d",
144+
"7d",
145+
"30d"
146+
]
147+
},
148+
"timezone": "",
149+
"title": "GitHub",
150+
"uid": "8LoCwsgZz",
151+
"version": 1
152+
}

0 commit comments

Comments
 (0)