metrics

package
v0.0.0-...-793517a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCollector

func RegisterCollector()

RegisterCollector - creates and registers bundlelib metrics collector with prometheus.

func SandboxCreated

func SandboxCreated()

SandboxCreated - Counter for how many sandbox created.

func SandboxDeleted

func SandboxDeleted()

SandboxDeleted - Counter for how many sandbox deleted.

Types

type Collector

type Collector struct {
	Sandbox prom.Gauge
}

Collector - collects bundlelib metrics

func (Collector) Collect

func (c Collector) Collect(ch chan<- prom.Metric)

Collect - returns the current state of the metrics

func (Collector) Describe

func (c Collector) Describe(ch chan<- *prom.Desc)

Describe - returns all the descriptions of the collector

Jump to

Keyboard shortcuts

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