metricsd

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDisableGoCollector   = false
	DefaultDisableProcCollector = false
	DefaultHTTPEndpointPath     = "/metrics"
)
View Source
const DaemonTypeMetricsd boot.DaemonType = "metricsd"

Variables

This section is empty.

Functions

func New

func New() boot.Daemon

Types

type Cfg

type Cfg struct {
	DisableGoCollector   bool   `` /* 151-byte string literal not displayed */
	DisableProcCollector bool   `` /* 231-byte string literal not displayed */
	HTTPEndpointPath     string `` /* 127-byte string literal not displayed */
}

func NewCfg

func NewCfg() *Cfg

type Metricsd

type Metricsd interface {
	boot.Daemon
	Register(prometheus.Collector) error
	MustRegister(...prometheus.Collector)
	RegisterMetric(prometheus.Metric) error
	SetGauge(string, float64)
	AddGauge(string, float64)
	SubGauge(string, float64)
	IncGauge(string)
	DecGauge(string)
	IncCounter(string)
	AddCounter(string, float64)
}

Jump to

Keyboard shortcuts

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