metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Namespace = "stiebeleltron"
)

Functions

This section is empty.

Types

type PrometheusMetric

type PrometheusMetric struct {
	GaugeName            string
	Group                string
	GroupSearchString    string
	PropertySearchString string
	HelpText             string
	Labels               prometheus.Labels
	Gauge                prometheus.Gauge
	ValueTransformer     Transformer
}

func (*PrometheusMetric) GetGroup

func (p *PrometheusMetric) GetGroup() string

func (*PrometheusMetric) GetSearchString

func (p *PrometheusMetric) GetSearchString() string

func (*PrometheusMetric) InitializeMetric

func (p *PrometheusMetric) InitializeMetric()

func (*PrometheusMetric) SetValue

func (p *PrometheusMetric) SetValue(v float64)

type Transformer

type Transformer func(v float64) float64

func NewDivisorTransformer

func NewDivisorTransformer(divisor float64) Transformer

func NewMultiplierTransformer

func NewMultiplierTransformer(multiplier float64) Transformer

Jump to

Keyboard shortcuts

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