adapter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorOptions

type CollectorOptions struct {
	Name   string
	Help   string
	Labels []string
}

CollectorOptions stores details needed for creating new Collector

type Counter

type Counter interface {
	Add(int64, Labels)
	Inc(Labels)
}

Counter goes up

type Gauge

type Gauge interface {
	Add(int64, Labels)
	Sub(int64, Labels)
	Inc(Labels)
	Set(int64, Labels)
}

Gauge can be set to anything

type Labels

type Labels map[string]string

Labels provides values for labels

type Timer

type Timer interface {
	Observe(int64, Labels)
}

Timer observes trends

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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