Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerMemoryCollector ¶
type DockerMemoryCollector struct {
// contains filtered or unexported fields
}
DockerMemoryCollector collects memory usage stats of a Docker container.
func StartDockerMemoryCollector ¶
func StartDockerMemoryCollector(containerName string) (*DockerMemoryCollector, error)
StartDockerMemoryCollector initializes and starts the memory collector.
func (*DockerMemoryCollector) GetMaxMemoryUsage ¶
func (c *DockerMemoryCollector) GetMaxMemoryUsage() (uint64, error)
GetMaxMemoryUsage returns the maximum memory usage observed during the collection period.
func (*DockerMemoryCollector) Stop ¶
func (c *DockerMemoryCollector) Stop() error
Stop stops the memory collector and waits for it to finish.
func (*DockerMemoryCollector) WaitForFirstSample ¶
func (c *DockerMemoryCollector) WaitForFirstSample() error
WaitForFirstSample waits until the first stats sample has been received.
Click to show internal directories.
Click to hide internal directories.