Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnkaMetricsProvider ¶ added in v1.2.0
type AnkaMetricsProvider struct {
GenericSystemMetricsProvider
}
func (*AnkaMetricsProvider) ReadUnitMetrics ¶ added in v1.2.0
func (a *AnkaMetricsProvider) ReadUnitMetrics(ifname string) api.ResourceMetrics
type GenericSystemMetricsProvider ¶ added in v1.2.0
type GenericSystemMetricsProvider struct {
// contains filtered or unexported fields
}
The generic system metrics provider uses psutil to gather data from the host system.
func (*GenericSystemMetricsProvider) ReadSystemMetrics ¶ added in v1.2.0
func (m *GenericSystemMetricsProvider) ReadSystemMetrics(netif string) api.ResourceMetrics
GetSystemMetrics returns a ResourceMetrics map with various pod and system level metrics.
type ItzoMetricsProvider ¶ added in v1.2.0
type ItzoMetricsProvider struct {
GenericSystemMetricsProvider
}
The Itzo metrics provider uses cgroups v1, and psutil to gather information about the host.
func (*ItzoMetricsProvider) ReadUnitMetrics ¶ added in v1.2.0
func (m *ItzoMetricsProvider) ReadUnitMetrics(name string) api.ResourceMetrics
GetUnitMetrics returns a ResourceMetrics map with various container level metrics.
type MetricsProvider ¶ added in v1.2.0
type MetricsProvider interface { ReadSystemMetrics(string) api.ResourceMetrics ReadUnitMetrics(string) api.ResourceMetrics }
A metrics provider gather system and unit information on the host system and return a mapping of the successfully processed metrics.
type PodmanMetricsProvider ¶ added in v1.2.0
type PodmanMetricsProvider struct {
GenericSystemMetricsProvider
}
The Podman metrics provider uses psutil to gather system level metrics. XXX: The unit metrics hasn’t been implemented yet.
func (*PodmanMetricsProvider) ReadUnitMetrics ¶ added in v1.2.0
func (p *PodmanMetricsProvider) ReadUnitMetrics(ifname string) api.ResourceMetrics
Click to show internal directories.
Click to hide internal directories.