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
0bc070ea
Commit
0bc070ea
authored
Dec 04, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18178 from vishh/cadvisor-trusty-update
Update cadvisor to v0.19.3.1.
parents
81b6ac47
869cc9fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
60 deletions
+56
-60
Godeps.json
Godeps/Godeps.json
+36
-36
factory.go
...rc/github.com/google/cadvisor/container/docker/factory.go
+6
-3
helpers.go
...hub.com/google/cadvisor/container/libcontainer/helpers.go
+13
-19
VERSION
..._workspace/src/github.com/google/cadvisor/version/VERSION
+1
-2
No files found.
Godeps/Godeps.json
View file @
0bc070ea
...
...
@@ -434,93 +434,93 @@
},
{
"ImportPath"
:
"github.com/google/cadvisor/api"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/cache/memory"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/collector"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/container"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/events"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/fs"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/healthz"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/http"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/info/v1"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/info/v2"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/manager"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/metrics"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/pages"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/storage"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/summary"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/utils"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/validate"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/cadvisor/version"
,
"Comment"
:
"v0.19.
2
"
,
"Rev"
:
"
aa6f80814bc6fdb43a0ed12719658225420ffb7d
"
"Comment"
:
"v0.19.
3-3-g3bfcb1e
"
,
"Rev"
:
"
3bfcb1e7cfc7de5fe42bba028aaacf2512100cb9
"
},
{
"ImportPath"
:
"github.com/google/gofuzz"
,
...
...
Godeps/_workspace/src/github.com/google/cadvisor/container/docker/factory.go
View file @
0bc070ea
...
...
@@ -46,6 +46,8 @@ var dockerRunDir = flag.String("docker_run", "/var/run/docker", "Absolute path t
// --cgroup-parent have another prefix than 'docker'
var
dockerCgroupRegexp
=
regexp
.
MustCompile
(
`.+-([a-z0-9]{64})\.scope$`
)
var
noSystemd
=
flag
.
Bool
(
"nosystemd"
,
false
,
"Explicitly disable systemd support for Docker containers"
)
// TODO(vmarmol): Export run dir too for newer Dockers.
// Directory holding Docker container state information.
func
DockerStateDir
()
string
{
...
...
@@ -53,13 +55,14 @@ func DockerStateDir() string {
}
// Whether the system is using Systemd.
var
useSystemd
bool
var
useSystemd
=
false
var
check
=
sync
.
Once
{}
func
UseSystemd
()
bool
{
check
.
Do
(
func
()
{
useSystemd
=
false
if
*
noSystemd
{
return
}
// Check for system.slice in systemd and cpu cgroup.
for
_
,
cgroupType
:=
range
[]
string
{
"name=systemd"
,
"cpu"
}
{
mnt
,
err
:=
cgroups
.
FindCgroupMountpoint
(
cgroupType
)
...
...
Godeps/_workspace/src/github.com/google/cadvisor/container/libcontainer/helpers.go
View file @
0bc070ea
...
...
@@ -18,6 +18,7 @@ import (
"bufio"
"fmt"
"io/ioutil"
"os"
"path"
"regexp"
"strconv"
...
...
@@ -135,7 +136,6 @@ func networkStatsFromProc(rootFs string, pid int) ([]info.InterfaceStats, error)
var
(
ignoredDevicePrefixes
=
[]
string
{
"lo"
,
"veth"
,
"docker"
}
netStatLineRE
=
regexp
.
MustCompile
(
"[ ]*(.+):([ ]+[0-9]+){16}"
)
)
func
isIgnoredDevice
(
ifName
string
)
bool
{
...
...
@@ -147,6 +147,8 @@ func isIgnoredDevice(ifName string) bool {
return
false
}
const
netstatsLine
=
`%s %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d`
func
scanInterfaceStats
(
netStatsFile
string
)
([]
info
.
InterfaceStats
,
error
)
{
var
(
bkt
uint64
...
...
@@ -154,34 +156,26 @@ func scanInterfaceStats(netStatsFile string) ([]info.InterfaceStats, error) {
stats
:=
[]
info
.
InterfaceStats
{}
data
,
err
:=
ioutil
.
ReadFile
(
netStatsFile
)
file
,
err
:=
os
.
Open
(
netStatsFile
)
if
err
!=
nil
{
return
stats
,
fmt
.
Errorf
(
"failure opening %s: %v"
,
netStatsFile
,
err
)
}
defer
file
.
Close
()
reader
:=
strings
.
NewReader
(
string
(
data
))
scanner
:=
bufio
.
NewScanner
(
reader
)
scanner
.
Split
(
bufio
.
ScanLines
)
scanner
:=
bufio
.
NewScanner
(
file
)
for
scanner
.
Scan
()
{
line
:=
scanner
.
Text
()
if
netStatLineRE
.
MatchString
(
line
)
{
line
=
strings
.
Replace
(
line
,
":"
,
""
,
-
1
)
i
:=
info
.
InterfaceStats
{}
line
=
strings
.
Replace
(
line
,
":"
,
""
,
-
1
)
_
,
err
:=
fmt
.
Sscanf
(
line
,
"%s %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d"
,
&
i
.
Name
,
&
i
.
RxBytes
,
&
i
.
RxPackets
,
&
i
.
RxErrors
,
&
i
.
RxDropped
,
&
bkt
,
&
bkt
,
&
bkt
,
&
bkt
,
&
i
.
TxBytes
,
&
i
.
TxPackets
,
&
i
.
TxErrors
,
&
i
.
TxDropped
,
&
bkt
,
&
bkt
,
&
bkt
,
&
bkt
)
i
:=
info
.
InterfaceStats
{}
if
err
!=
nil
{
return
stats
,
fmt
.
Errorf
(
"failure opening %s: %v"
,
netStatsFile
,
err
)
}
_
,
err
:=
fmt
.
Sscanf
(
line
,
netstatsLine
,
&
i
.
Name
,
&
i
.
RxBytes
,
&
i
.
RxPackets
,
&
i
.
RxErrors
,
&
i
.
RxDropped
,
&
bkt
,
&
bkt
,
&
bkt
,
&
bkt
,
&
i
.
TxBytes
,
&
i
.
TxPackets
,
&
i
.
TxErrors
,
&
i
.
TxDropped
,
&
bkt
,
&
bkt
,
&
bkt
,
&
bkt
)
if
!
isIgnoredDevice
(
i
.
Name
)
{
stats
=
append
(
stats
,
i
)
}
if
err
==
nil
&&
!
isIgnoredDevice
(
i
.
Name
)
{
stats
=
append
(
stats
,
i
)
}
}
...
...
Godeps/_workspace/src/github.com/google/cadvisor/version/VERSION
View file @
0bc070ea
0.19.2
\ No newline at end of file
0.19.3.1
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