forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_proxy.go
More file actions
36 lines (35 loc) · 890 Bytes
/
Copy pathgithub_proxy.go
File metadata and controls
36 lines (35 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
func GitHubProxy() *Container {
return &Container{
Name: "github-proxy",
Title: "GitHub Proxy",
Description: "Proxies all requests to github.com, keeping track of and managing rate limits.",
Groups: []Group{
{
Title: "Container monitoring (not available on server)",
Hidden: true,
Rows: []Row{
{
sharedContainerRestarts("github-proxy"),
sharedContainerMemoryUsage("github-proxy"),
sharedContainerCPUUsage("github-proxy"),
},
},
},
{
Title: "Provisioning indicators (not available on server)",
Hidden: true,
Rows: []Row{
{
sharedProvisioningCPUUsage1d("github-proxy"),
sharedProvisioningMemoryUsage1d("github-proxy"),
},
{
sharedProvisioningCPUUsage5m("github-proxy"),
sharedProvisioningMemoryUsage5m("github-proxy"),
},
},
},
},
}
}