probes

package
v0.0.0-...-42841ab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HealthCheckNameFmt = "[%+v].Healthcheck"
)
View Source
const (
	NameFmt = "[%+v].Metrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	*comps.Component
	PCounter prometheus.Counter
}

func (Counter) Activate

func (c Counter) Activate(ctx context.Context) error

func (Counter) Deactivate

func (c Counter) Deactivate(ctx context.Context) error

func (Counter) IAmMetricsCounter

func (c Counter) IAmMetricsCounter()

type Healthcheck

type Healthcheck struct {
	*comps.Component
}

type IHealthcheck

type IHealthcheck interface {
	spokes.ISpoke
}

type IMetrics

type IMetrics interface {
	spokes.ISpoke
	IAmMetrics()
	RegisterCounters(counters ...Counter)
}

func NewMetrics

func NewMetrics(config config.IAppConfig) IMetrics

type IMetricsCounter

type IMetricsCounter interface {
	comps.ISpokePlugin
	IAmMetricsCounter()
}

func NewCounter

func NewCounter(name schema.Name,
	nameSpace string,
	subSystem string,
	help string,
	constLabels map[string]string) IMetricsCounter

Jump to

Keyboard shortcuts

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