Documentation
¶
Index ¶
- Constants
- func AddCounter(name string, v float64)
- func AddGauge(name string, v float64)
- func DecGauge(name string)
- func IncCounter(name string)
- func IncGauge(name string)
- func RegisterCollector(c prometheus.Collector) error
- func RegisterMetric(m prometheus.Metric) error
- func SetGauge(name string, v float64)
- func SubGauge(name string, v float64)
- type Cfg
- type Promd
- func (p *Promd) AddCounter(name string, v float64)
- func (p *Promd) AddGauge(name string, v float64)
- func (p *Promd) DecGauge(name string)
- func (p *Promd) GetCfg() interface{}
- func (p *Promd) IncCounter(name string)
- func (p *Promd) IncGauge(name string)
- func (p *Promd) Init() error
- func (p *Promd) SetGauge(name string, v float64)
- func (p *Promd) SubGauge(name string, v float64)
- func (p *Promd) Type() interface{}
Constants ¶
View Source
const ( DefaultDisableGoCollector = false DefaultDisableProcCollector = false DefaultHTTPEndpointPath = "/metrics" )
View Source
const DaemonTypePromd boot.DaemonType = "promd"
Variables ¶
This section is empty.
Functions ¶
func AddCounter ¶
func IncCounter ¶
func IncCounter(name string)
func RegisterCollector ¶ added in v0.0.7
func RegisterCollector(c prometheus.Collector) error
func RegisterMetric ¶ added in v0.0.7
func RegisterMetric(m prometheus.Metric) error
Types ¶
type Cfg ¶
Click to show internal directories.
Click to hide internal directories.