Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DerivedContainerMetrics ¶
type DerivedContainerMetrics struct {
// containerName is the name of the raw cgroup.
ContainerName string `json:"containerName"`
// containerMetrics contains derived metrics about the container.
ContainerMetrics MetricsWindows `json:"containerMetrics"`
}
DerivedNodeMetricsList contains derived metrics for a single container.
type DerivedNodeMetrics ¶
type DerivedNodeMetrics struct {
// NodeName is the name of the node
NodeName string `json:"nodeName"`
// nodeMetrics contains derived metrics about the node.
NodeMetrics MetricsWindows `json:"nodeMetrics"`
// systemContainers contains derived container metrics for all the
// cgroups that are managed by the kubelet on the node.
SystemContainers []DerivedContainerMetrics `json:"systemContainers"`
}
DerivedNodeMetricsList contains derived metrics for a single node. It holds derived metrics in windows about the node itself and all of its system containers.
type MetricsWindow ¶
type MetricsWindow struct {
// duration is the length in time of the window. The start of the
// window will be the subtraction of this duration to EndTime.
Duration unversioned.Duration `json:"duration"`
// mean holds the averages over the window.
Mean ResourceUsage `json:"mean"`
// max holds the maximum values over the window.
Max ResourceUsage `json:"max"`
// ninetyFifthPercentile holds the 95th percentile values over the window.
NinetyFifthPercentile ResourceUsage `json:"ninetyFifthPercentile"`
}
MetricsWindow holds derived metrics for multiple resources.
type MetricsWindows ¶
type MetricsWindows struct {
// endTime is the end time of all the time windows.
EndTime unversioned.Time `json:"endTime"`
// windows is a list of all the time windows with metrics. All of the
// windows are rolling.
Windows []MetricsWindow `json:"windows"`
}
MetricsWindows holds multiple derived metrics windows.
type ResourceUsage ¶
ResourceUsage maps resource names to their metric values. Resource names are "cpu" and "memory".
Click to show internal directories.
Click to hide internal directories.