metrics

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	ClusterName  string
	MetricPoints []Metrics
}

Collector struct: contains field for ClusterName and MetricsPoints

func (*Collector) AddComponentsMetricsEntry

func (m *Collector) AddComponentsMetricsEntry(measurement string, tags map[string]string, value interface{})

AddComponentsMetricsEntry will create a basic metrics entry with all the needed fields. Please do not provide node/clustername within the tags; this function will manage this for you

func (*Collector) AddNodesMetricsEntry

func (m *Collector) AddNodesMetricsEntry(measurement string, node string, tags map[string]string, value interface{})

AddNodesMetricsEntry will create a basic metrics entry with all the needed fields. Please do not provide node/clustername within the tags; this function will manage this for you

func (*Collector) AddSimpleMetricsEntry

func (m *Collector) AddSimpleMetricsEntry(measurement string, value interface{})

AddSimpleMetricsEntry will create a basic metrics entry with all the needed fields. Please do not provide node/clustername within the tags; this function will manage this for you

type Metrics

type Metrics struct {
	Measurement string
	Tags        map[string]string
	Value       map[string]interface{}
}

Metrics struct: contains field for Measurement, Tags and

func (Metrics) String

func (m Metrics) String() string

Jump to

Keyboard shortcuts

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