micro

package
v2.9.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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