monitoring

package
v0.0.0-...-2076f09 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedGauge

type NamedGauge interface {
	Update(val int)
}

NamedGauge - Maps and updates a ProseGauge with a name

func NewNamedGauge

func NewNamedGauge(c NamedGaugeConfig) (NamedGauge, error)

NewNamedGauge - constructor

type NamedGaugeConfig

type NamedGaugeConfig struct {
	Gauge ProseGauge
	Name  string
}

NamedGaugeConfig - config

type ProseGauge

type ProseGauge interface {
	UpdateInt(name string, i int)
}

ProseGauge - A domain model of a prometheus gauge

func NewProseGauge

func NewProseGauge(c ProseGaugeConfig) (ProseGauge, error)

NewProseGauge - Create a new gauge

type ProseGaugeConfig

type ProseGaugeConfig struct {
	Namespace string
	Subsystem string
	Name      string
	Label     string
}

ProseGaugeConfig - config

Jump to

Keyboard shortcuts

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