Add cadvisor version to VersionInfo.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
This commit is contained in:
parent
54fbc922a5
commit
53dee582f5
@ -31,6 +31,9 @@ type VersionInfo struct {
|
|||||||
|
|
||||||
// Docker version.
|
// Docker version.
|
||||||
DockerVersion string `json:"docker_version"`
|
DockerVersion string `json:"docker_version"`
|
||||||
|
|
||||||
|
// cAdvisor version.
|
||||||
|
CadvisorVersion string `json:"cadvisor_version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MachineInfoFactory interface {
|
type MachineInfoFactory interface {
|
||||||
|
@ -75,6 +75,7 @@ func getVersionInfo() (*info.VersionInfo, error) {
|
|||||||
KernelVersion: kernel_version,
|
KernelVersion: kernel_version,
|
||||||
ContainerOsVersion: container_os,
|
ContainerOsVersion: container_os,
|
||||||
DockerVersion: docker_version,
|
DockerVersion: docker_version,
|
||||||
|
CadvisorVersion: info.VERSION,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user