prometheus

package
v0.36.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler added in v0.19.0

func Handler(MaxRequestsInFlight int) http.Handler

func NewConcurrentCollector

func NewConcurrentCollector(MaxRequestsPerKey int) *concurrentCollector

func RegisterFakeCollector added in v0.35.0

func RegisterFakeCollector()

Types

type Collector

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

func SetupCollector

func SetupCollector(virtCli kubecli.KubevirtClient, virtShareDir, nodeName string, MaxRequestsInFlight int, vmiInformer cache.SharedIndexInformer) *Collector

func (*Collector) Collect

func (co *Collector) Collect(ch chan<- prometheus.Metric)

Note that Collect could be called concurrently

func (*Collector) Describe

func (co *Collector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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