Kubernetes input: Handle null startTime for stopped pods (#2335)
This commit is contained in:
committed by
Cameron Sparr
parent
c65d74d54e
commit
f0f913ab41
@@ -45,7 +45,7 @@ type CPUMetrics struct {
|
||||
// PodMetrics contains metric data on a given pod
|
||||
type PodMetrics struct {
|
||||
PodRef PodReference `json:"podRef"`
|
||||
StartTime time.Time `json:"startTime"`
|
||||
StartTime *time.Time `json:"startTime"`
|
||||
Containers []ContainerMetrics `json:"containers"`
|
||||
Network NetworkMetrics `json:"network"`
|
||||
Volumes []VolumeMetrics `json:"volume"`
|
||||
|
||||
Reference in New Issue
Block a user