micro

package
v2.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct{}

Config is the go-micro collector configuration

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

type Micro

type Micro struct {
	// netdata
	module.Base
	Config `yaml:",inline"`

	// internal
	sync.RWMutex
	// contains filtered or unexported fields
}

Micro is a netdata module that collects metrics from the go.micro.debug service

func New

func New(c client.Client) *Micro

New creates the micro module with default values

func (*Micro) Charts

func (m *Micro) Charts() *Charts

Charts passes the module's charts to the orchestrator

func (*Micro) Check

func (m *Micro) Check() bool

Check can be called by netdata's orchestrator to ensure the collector is working

func (*Micro) Cleanup

func (m *Micro) Cleanup()

Cleanup is a no-op, called by netdata's orchestrator before shutdown

func (*Micro) Collect

func (m *Micro) Collect() map[string]int64

Collect returns the current view of the metrics to the orchestrator

func (*Micro) Init

func (m *Micro) Init() bool

Init ensures the client is working, then starts saving snapshots.

func (*Micro) Register

func (m *Micro) Register()

Register Registers with the orchestrator

Jump to

Keyboard shortcuts

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