Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
afba2f75
Commit
afba2f75
authored
Mar 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22803 from derekwaynecarr/update_cadvisor
Auto commit by PR queue bot
parents
45064e19
572dd376
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
43 deletions
+51
-43
Godeps.json
Godeps/Godeps.json
+36
-36
machine.go
...rkspace/src/github.com/google/cadvisor/info/v1/machine.go
+5
-5
aws.go
...ace/src/github.com/google/cadvisor/utils/cloudinfo/aws.go
+9
-1
cloudinfo.go
...c/github.com/google/cadvisor/utils/cloudinfo/cloudinfo.go
+1
-1
No files found.
Godeps/Godeps.json
View file @
afba2f75
...
@@ -578,93 +578,93 @@
...
@@ -578,93 +578,93 @@
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/api"
,
"ImportPath"
:
"github.com/google/cadvisor/api"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/cache/memory"
,
"ImportPath"
:
"github.com/google/cadvisor/cache/memory"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/collector"
,
"ImportPath"
:
"github.com/google/cadvisor/collector"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/container"
,
"ImportPath"
:
"github.com/google/cadvisor/container"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/events"
,
"ImportPath"
:
"github.com/google/cadvisor/events"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/fs"
,
"ImportPath"
:
"github.com/google/cadvisor/fs"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/healthz"
,
"ImportPath"
:
"github.com/google/cadvisor/healthz"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/http"
,
"ImportPath"
:
"github.com/google/cadvisor/http"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/info/v1"
,
"ImportPath"
:
"github.com/google/cadvisor/info/v1"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/info/v2"
,
"ImportPath"
:
"github.com/google/cadvisor/info/v2"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/manager"
,
"ImportPath"
:
"github.com/google/cadvisor/manager"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/metrics"
,
"ImportPath"
:
"github.com/google/cadvisor/metrics"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/pages"
,
"ImportPath"
:
"github.com/google/cadvisor/pages"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/storage"
,
"ImportPath"
:
"github.com/google/cadvisor/storage"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/summary"
,
"ImportPath"
:
"github.com/google/cadvisor/summary"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/utils"
,
"ImportPath"
:
"github.com/google/cadvisor/utils"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/validate"
,
"ImportPath"
:
"github.com/google/cadvisor/validate"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/cadvisor/version"
,
"ImportPath"
:
"github.com/google/cadvisor/version"
,
"Comment"
:
"v0.22.
0
"
,
"Comment"
:
"v0.22.
1
"
,
"Rev"
:
"
e39fb02c89f2b39808bc1723108cde5bb510e102
"
"Rev"
:
"
b344feb952c13e0730fa52eb5e5cf1cf7130ee9c
"
},
},
{
{
"ImportPath"
:
"github.com/google/gofuzz"
,
"ImportPath"
:
"github.com/google/gofuzz"
,
...
...
Godeps/_workspace/src/github.com/google/cadvisor/info/v1/machine.go
View file @
afba2f75
...
@@ -121,11 +121,11 @@ type NetInfo struct {
...
@@ -121,11 +121,11 @@ type NetInfo struct {
type
CloudProvider
string
type
CloudProvider
string
const
(
const
(
GCE
CloudProvider
=
"GCE"
GCE
CloudProvider
=
"GCE"
AWS
=
"AWS"
AWS
=
"AWS"
Azure
=
"Azure"
Azure
=
"Azure"
Baremetal
=
"Baremetal"
Baremetal
=
"Baremetal"
UnkownProvider
=
"Unknown"
Unk
n
ownProvider
=
"Unknown"
)
)
type
InstanceType
string
type
InstanceType
string
...
...
Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/aws.go
View file @
afba2f75
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
package
cloudinfo
package
cloudinfo
import
(
import
(
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/aws/session"
...
@@ -23,7 +25,13 @@ import (
...
@@ -23,7 +25,13 @@ import (
)
)
func
onAWS
()
bool
{
func
onAWS
()
bool
{
client
:=
ec2metadata
.
New
(
session
.
New
(
&
aws
.
Config
{}))
// the default client behavior retried the operation multiple times with a 5s timeout per attempt.
// if you were not on aws, you would block for 20s when invoking this operation.
// we reduce retries to 0 and set the timeout to 2s to reduce the time this blocks when not on aws.
client
:=
ec2metadata
.
New
(
session
.
New
(
&
aws
.
Config
{
MaxRetries
:
aws
.
Int
(
0
)}))
if
client
.
Config
.
HTTPClient
!=
nil
{
client
.
Config
.
HTTPClient
.
Timeout
=
time
.
Duration
(
2
*
time
.
Second
)
}
return
client
.
Available
()
return
client
.
Available
()
}
}
...
...
Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/cloudinfo.go
View file @
afba2f75
...
@@ -66,7 +66,7 @@ func detectCloudProvider() info.CloudProvider {
...
@@ -66,7 +66,7 @@ func detectCloudProvider() info.CloudProvider {
case
onBaremetal
()
:
case
onBaremetal
()
:
return
info
.
Baremetal
return
info
.
Baremetal
}
}
return
info
.
UnkownProvider
return
info
.
Unk
n
ownProvider
}
}
func
detectInstanceType
(
cloudProvider
info
.
CloudProvider
)
info
.
InstanceType
{
func
detectInstanceType
(
cloudProvider
info
.
CloudProvider
)
info
.
InstanceType
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment