promd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDisableGoCollector   = false
	DefaultDisableProcCollector = false
)
View Source
const DaemonTypePromd boot.DaemonType = "promd"

Variables

This section is empty.

Functions

func AddCounter

func AddCounter(name string, v float64)

func AddGauge

func AddGauge(name string, v float64)

func DecGauge

func DecGauge(name string)

func IncCounter

func IncCounter(name string)

func IncGauge

func IncGauge(name string)

func SetGauge

func SetGauge(name string, v float64)

func SubGauge

func SubGauge(name string, v float64)

Types

type Cfg

type Cfg struct {
	DisableGoCollector   bool `` /* 175-byte string literal not displayed */
	DisableProcCollector bool `` /* 257-byte string literal not displayed */
}

func NewCfg

func NewCfg() *Cfg

type Promd

type Promd struct {
	runner.Runner
	plugin.Plugin
	*Cfg
	// contains filtered or unexported fields
}

func New

func New() *Promd

func (*Promd) AddCounter

func (p *Promd) AddCounter(name string, v float64)

func (*Promd) AddGauge

func (p *Promd) AddGauge(name string, v float64)

func (*Promd) DecGauge

func (p *Promd) DecGauge(name string)

func (*Promd) GetCfg

func (p *Promd) GetCfg() interface{}

func (*Promd) IncCounter

func (p *Promd) IncCounter(name string)

func (*Promd) IncGauge

func (p *Promd) IncGauge(name string)

func (*Promd) Init

func (p *Promd) Init() error

func (*Promd) SetGauge

func (p *Promd) SetGauge(name string, v float64)

func (*Promd) SubGauge

func (p *Promd) SubGauge(name string, v float64)

func (*Promd) Type

func (p *Promd) Type() interface{}

Jump to

Keyboard shortcuts

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