metrics

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoData indicates the collector found no data to collect, but had no other error.
	ErrNoData = errors.New("collector returned no data")
)

Functions

func IsNoDataError

func IsNoDataError(err error) bool

Types

type CarinaCollector

type CarinaCollector struct {
	// contains filtered or unexported fields
}

CarinaCollector implements the prometheus.Collector interface.

func NewCarinaCollector

func NewCarinaCollector(dm *deviceManager.DeviceManager, lvService *k8s.LogicVolumeService) (*CarinaCollector, error)

func (CarinaCollector) Collect

func (c CarinaCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (CarinaCollector) Describe

func (c CarinaCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

type Collector

type Collector interface {
	Update(ch chan<- prometheus.Metric) error
	Name() string
}

Collector is the interface a collector has to implement.

Jump to

Keyboard shortcuts

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