prometheus

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	prometheus.Collector
	Observe(metric config.Metric, topic string, v float64, labelValues ...string)
}

Collector is an extended interface of prometheus.Collector.

func NewCollector

func NewCollector(expiration time.Duration, possibleMetrics []config.Metric) Collector

NewCollector constructs collector for incoming prometheus metrics.

Jump to

Keyboard shortcuts

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