types

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUStatsConfig added in v0.8.1

type CPUStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type DiskStatsConfig

type DiskStatsConfig struct {
	MetricsConfigs        map[string]MetricConfig `json:"metricsConfigs"`
	IncludeRootBlk        bool                    `json:"includeRootBlk"`
	IncludeAllAttachedBlk bool                    `json:"includeAllAttachedBlk"`
	LsblkTimeoutString    string                  `json:"lsblkTimeout"`
	LsblkTimeout          time.Duration           `json:"-"`
}

type HostStatsConfig

type HostStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type MemoryStatsConfig added in v0.8.1

type MemoryStatsConfig struct {
	MetricsConfigs map[string]MetricConfig `json:"metricsConfigs"`
}

type MetricConfig

type MetricConfig struct {
	DisplayName string `json:"displayName"`
}

type NetStatsConfig added in v0.8.6

type NetStatsConfig struct {
	MetricsConfigs         map[string]MetricConfig `json:"metricsConfigs"`
	ExcludeInterfaceRegexp NetStatsInterfaceRegexp `json:"excludeInterfaceRegexp"`
}

type NetStatsInterfaceRegexp added in v0.8.11

type NetStatsInterfaceRegexp struct {
	R *regexp.Regexp
}

In order to marshal/unmarshal regexp, we need to implement MarshalText/UnmarshalText methods in a wrapper struct

func (NetStatsInterfaceRegexp) MarshalText added in v0.8.11

func (r NetStatsInterfaceRegexp) MarshalText() ([]byte, error)

func (*NetStatsInterfaceRegexp) UnmarshalText added in v0.8.11

func (r *NetStatsInterfaceRegexp) UnmarshalText(data []byte) error

type OSFeatureStatsConfig added in v0.8.6

type OSFeatureStatsConfig struct {
	MetricsConfigs         map[string]MetricConfig `json:"metricsConfigs"`
	KnownModulesConfigPath string                  `json:"knownModulesConfigPath"`
}

type SystemStatsConfig

type SystemStatsConfig struct {
	CPUConfig            CPUStatsConfig       `json:"cpu"`
	DiskConfig           DiskStatsConfig      `json:"disk"`
	HostConfig           HostStatsConfig      `json:"host"`
	MemoryConfig         MemoryStatsConfig    `json:"memory"`
	OsFeatureConfig      OSFeatureStatsConfig `json:"osFeature"`
	NetConfig            NetStatsConfig       `json:"net"`
	InvokeIntervalString string               `json:"invokeInterval"`
	InvokeInterval       time.Duration        `json:"-"`
	ProcPath             string               `json:"procPath"`
}

func (*SystemStatsConfig) ApplyConfiguration

func (ssc *SystemStatsConfig) ApplyConfiguration() error

ApplyConfiguration applies default configurations.

func (*SystemStatsConfig) Validate

func (ssc *SystemStatsConfig) Validate() error

Validate verifies whether the settings are valid.

Jump to

Keyboard shortcuts

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