observability

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

Metrics represents the stats for observability

func InitMetrics

func InitMetrics(enabled bool, port int) (Metrics, error)

InitMetrics will initialize, register and expose, via http server, the metrics with Opentelemetry.

func (Metrics) ErrorEventsInc

func (m Metrics) ErrorEventsInc(where string)

ErrorEventsInc will increment one for the event errors counter, partitioned by action, and only if metrics are enabled.

func (Metrics) NodeActionsInc

func (m Metrics) NodeActionsInc(action, nodeName string, err error)

NodeActionsInc will increment one for the node stats counter, partitioned by action, nodeName and status, and only if metrics are enabled.

Jump to

Keyboard shortcuts

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