micro

package
v0.0.0-...-f47e464 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 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() *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

func (*Micro) WithClient

func (m *Micro) WithClient(c client.Client) *Micro

WithClient sets the micro client

Jump to

Keyboard shortcuts

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