File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ type CPUMetric struct {
2626 CPUUsed resource.Quantity
2727}
2828
29+ type GPUMetric struct {
30+ Minor int32 // index starting from 0
31+ DeviceUUID string // device UUID
32+ SMUtil resource.Quantity // current utilization rate for the device
33+ MemoryUsed resource.Quantity // used memory on the device, in bytes
34+ }
35+
2936type MemoryMetric struct {
3037 MemoryWithoutCache resource.Quantity
3138}
@@ -37,6 +44,7 @@ type CPUThrottledMetric struct {
3744type NodeResourceMetric struct {
3845 CPUUsed CPUMetric
3946 MemoryUsed MemoryMetric
47+ GPUs []* GPUMetric
4048}
4149
4250type NodeResourceQueryResult struct {
@@ -48,6 +56,7 @@ type PodResourceMetric struct {
4856 PodUID string
4957 CPUUsed CPUMetric
5058 MemoryUsed MemoryMetric
59+ GPUs []* GPUMetric
5160}
5261
5362type PodResourceQueryResult struct {
@@ -59,6 +68,7 @@ type ContainerResourceMetric struct {
5968 ContainerID string
6069 CPUUsed CPUMetric
6170 MemoryUsed MemoryMetric
71+ GPUs []* GPUMetric
6272}
6373
6474type ContainerResourceQueryResult struct {
You can’t perform that action at this time.
0 commit comments