client

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricFunc

type MetricFunc func(url string, params map[string]string) ([]byte, error)

type RodanClient

type RodanClient struct {
	// contains filtered or unexported fields
}

func NewRodanClient

func NewRodanClient(fetcher pod.PodFetcher, metricFunc MetricFunc, port int) *RodanClient

func (*RodanClient) GetCoreCPUStats

func (c *RodanClient) GetCoreCPUStats() (map[int][]types.Cell, error)

func (*RodanClient) GetNUMAMemoryStats

func (c *RodanClient) GetNUMAMemoryStats() (map[int][]types.Cell, error)

func (*RodanClient) GetNodeCgroupMemoryStats

func (c *RodanClient) GetNodeCgroupMemoryStats() ([]types.Cell, error)

func (*RodanClient) GetNodeMemoryStats

func (c *RodanClient) GetNodeMemoryStats() ([]types.Cell, error)

func (*RodanClient) GetNodeSysctl

func (c *RodanClient) GetNodeSysctl() ([]types.Cell, error)

func (*RodanClient) GetPodContainerCPUStats

func (c *RodanClient) GetPodContainerCPUStats(ctx context.Context, podUID string) (map[string][]types.Cell, error)

func (*RodanClient) GetPodContainerCgNumaStats

func (c *RodanClient) GetPodContainerCgNumaStats(ctx context.Context, podUId string) (map[string]map[int][]types.Cell, error)

func (*RodanClient) GetPodContainerCghardwareStats

func (c *RodanClient) GetPodContainerCghardwareStats(ctx context.Context, podUID string) (map[string][]types.Cell, error)

func (*RodanClient) GetPodContainerCgroupMemStats

func (c *RodanClient) GetPodContainerCgroupMemStats(ctx context.Context, podUID string) (map[string][]types.Cell, error)

func (*RodanClient) GetPodContainerLoadStats

func (c *RodanClient) GetPodContainerLoadStats(ctx context.Context, podUID string) (map[string][]types.Cell, error)

func (*RodanClient) GetPodContainerStats

func (c *RodanClient) GetPodContainerStats(ctx context.Context, podUID string, url string) (map[string][]types.Cell, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL