metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricConfig

type MetricConfig struct {
	Enabled      bool   `config:"enabled"`
	MetricQueue  string `config:"queue"`
	LoggingQueue string `config:"logging_queue"`

	EventQueue map[string]string `config:"event_queue"` // metadata.name -> queue name

	InstanceConfig *Config `config:"instance"`

	NetworkConfig       *Config `config:"network"`
	DiskConfig          *Config `config:"disk"`
	CPUConfig           *Config `config:"cpu"`
	MemoryConfig        *Config `config:"memory"`
	ElasticsearchConfig *Config `config:"elasticsearch"`

	Tags   []string          `config:"tags"`
	Labels map[string]string `config:"labels"`
}

type MetricsModule

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

func (*MetricsModule) CollectAgentMetric

func (module *MetricsModule) CollectAgentMetric()

func (*MetricsModule) CollectESMetric

func (module *MetricsModule) CollectESMetric()

func (*MetricsModule) CollectHostMetric

func (module *MetricsModule) CollectHostMetric()

func (*MetricsModule) Name

func (module *MetricsModule) Name() string

func (*MetricsModule) Setup

func (module *MetricsModule) Setup()

func (*MetricsModule) Start

func (module *MetricsModule) Start() error

func (*MetricsModule) Stop

func (module *MetricsModule) Stop() error

Directories

Path Synopsis
host
cpu

Jump to

Keyboard shortcuts

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