lib

package
v0.0.0-...-dc029e1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectorEnabled

func CollectorEnabled(c Collector) bool

func DescribeEnabledMetrics

func DescribeEnabledMetrics(c Collector, ch chan<- *prometheus.Desc)

func PrintMetrics

func PrintMetrics(collectors []Collector, format string)

Types

type Collector

type Collector interface {
	prometheus.Collector

	Name() string
	Metrics() []Metric
}

type Metric

type Metric struct {
	Name        string
	Description string
	Labels      []string
	ValueType   prometheus.ValueType
	Set         config.MetricSet
	// contains filtered or unexported fields
}

func (*Metric) Desc

func (m *Metric) Desc() *prometheus.Desc

Jump to

Keyboard shortcuts

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