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 ¶
func NewDivisorTransformer ¶
func NewDivisorTransformer(divisor float64) Transformer
func NewMultiplierTransformer ¶
func NewMultiplierTransformer(multiplier float64) Transformer
Click to show internal directories.
Click to hide internal directories.