supbmetric

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLen = 3601

	MetricsPushOff = "off"
)

Variables

This section is empty.

Functions

func WithRPC

func WithRPC(rpc nervous.Controller) option

Types

type SupbMetrics

type SupbMetrics struct {
	Guid string
	// contains filtered or unexported fields
}

func NewSupbMetrics

func NewSupbMetrics(ctx context.Context, prefix string) *SupbMetrics

func (*SupbMetrics) AddGuid

func (r *SupbMetrics) AddGuid(guid string)

func (*SupbMetrics) Close

func (r *SupbMetrics) Close() error

func (*SupbMetrics) DeleteGuid

func (r *SupbMetrics) DeleteGuid(guid string)

func (*SupbMetrics) GetCPUWithTimeRange

func (r *SupbMetrics) GetCPUWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)

func (*SupbMetrics) GetMemoryWithTimeRange

func (r *SupbMetrics) GetMemoryWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)

func (*SupbMetrics) GetMetricsNow

func (r *SupbMetrics) GetMetricsNow(guid string, td time.Duration) (*metrics.ContainerMetrics, error)

func (*SupbMetrics) GetNetRxWithTimeRange

func (r *SupbMetrics) GetNetRxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)

func (*SupbMetrics) GetNetTxWithTimeRange

func (r *SupbMetrics) GetNetTxWithTimeRange(guid string, start, end time.Time) ([][2]interface{}, error)

func (*SupbMetrics) InitFlags

func (r *SupbMetrics) InitFlags(flags *pflag.FlagSet)

func (*SupbMetrics) InitViper

func (r *SupbMetrics) InitViper(viper *viper.Viper)

func (*SupbMetrics) Initialize

func (r *SupbMetrics) Initialize(opts ...option)

func (*SupbMetrics) IsMonitor

func (r *SupbMetrics) IsMonitor(guid string) bool

func (*SupbMetrics) OptionConfig

func (r *SupbMetrics) OptionConfig(opts ...option)

func (*SupbMetrics) ViperConfig

func (r *SupbMetrics) ViperConfig(viper *viper.Viper)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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