micro

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 11 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 go-micro services

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 creates Charts

func (*Micro) Check

func (m *Micro) Check() bool

Check makes check

func (Micro) Cleanup

func (Micro) Cleanup()

Cleanup makes cleanup

func (*Micro) Collect

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

Collect collects metrics

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