Skip to content

Commit 9276d54

Browse files
authored
Import
From `Autodesk/pull/177`
1 parent 9249784 commit 9276d54

File tree

1 file changed

+141
-0
lines changed

1 file changed

+141
-0
lines changed
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
---
2+
layout: repository
3+
title: GitHub Metrics - Git Traffic
4+
permalink: /repository/github-git-traffic
5+
---
6+
7+
<div class="chart-placeholder">
8+
<h3>Operations</h3>
9+
<canvas
10+
data-url="{{ site.dataURL }}/repository/github-git-download.tsv"
11+
data-type="history"
12+
data-config='{
13+
"views":
14+
[
15+
{
16+
"label": "2 m",
17+
"tooltip": "Show the last 2 months",
18+
"aggregate": false,
19+
"series":
20+
[
21+
"clones",
22+
"fetches"
23+
],
24+
"slice": [0, 61]
25+
},
26+
{
27+
"label": "2 y",
28+
"tooltip": "Show the last 2 years",
29+
"aggregate":
30+
{
31+
"period": "week",
32+
"method": "sum"
33+
},
34+
"series":
35+
[
36+
"clones",
37+
"fetches"
38+
],
39+
"slice": [0, 106],
40+
"default": true
41+
},
42+
{
43+
"label": "all",
44+
"tooltip": "Show all data",
45+
"aggregate":
46+
{
47+
"period": "week",
48+
"method": "sum"
49+
},
50+
"series":
51+
[
52+
"clones",
53+
"fetches"
54+
]
55+
}
56+
]
57+
}'></canvas>
58+
<div class="info-box">
59+
<p>
60+
<em>Cloning</em> a Git repository is expensive, as the entire repository history must be transferred.
61+
Clients that have cloned a repository before should rather <em>fetch</em> the latest changes.
62+
This is (sometimes dramatically!) faster for the client and less expensive for the server.
63+
</p>
64+
<p>
65+
High numbers of clone operations usually indicate an unfavorably configured CI process.
66+
</p>
67+
</div>
68+
</div>
69+
70+
<div class="chart-placeholder">
71+
<h3>Transferred Data</h3>
72+
<canvas
73+
data-url="{{ site.dataURL }}/repository/github-git-download.tsv"
74+
data-type="history"
75+
data-config='{
76+
"views":
77+
[
78+
{
79+
"label": "2 m",
80+
"tooltip": "Show the last 2 months",
81+
"aggregate": false,
82+
"series":
83+
[
84+
"clone traffic [GB]",
85+
"fetch traffic [GB]",
86+
"LFS traffic [GB]"
87+
],
88+
"slice": [0, 61]
89+
},
90+
{
91+
"label": "2 y",
92+
"tooltip": "Show the last 2 years",
93+
"aggregate":
94+
{
95+
"period": "week",
96+
"method": "sum"
97+
},
98+
"series":
99+
[
100+
"clone traffic [GB]",
101+
"fetch traffic [GB]",
102+
"LFS traffic [GB]"
103+
],
104+
"slice": [0, 106],
105+
"default": true
106+
},
107+
{
108+
"label": "all",
109+
"tooltip": "Show all data",
110+
"aggregate":
111+
{
112+
"period": "week",
113+
"method": "sum"
114+
},
115+
"series":
116+
[
117+
"clone traffic [GB]",
118+
"fetch traffic [GB]",
119+
"LFS traffic [GB]"
120+
]
121+
}
122+
]
123+
}'></canvas>
124+
<div class="info-box">
125+
<p>
126+
The amount of data transferred for clones and fetches (<em>excluding</em> Git LFS traffic) as well as pure <a href="https://git-lfs.github.com/">Git LFS</a> traffic (indirectly triggered through clones and fetches).
127+
</p>
128+
<p>
129+
To save resources, you should try to minimize the number of clones, especially for large repositories.
130+
</p>
131+
</div>
132+
</div>
133+
134+
<div class="chart-placeholder">
135+
<table data-url="{{ site.dataURL }}/repository/github-git-download-detailed.tsv" data-type="table"></table>
136+
<div class="info-box">
137+
<p>
138+
This table lists the repositories that accounted for the majority of the traffic yesterday.
139+
</p>
140+
</div>
141+
</div>

0 commit comments

Comments
 (0)