prometheus

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider(ctx context.Context, cfg *viper.Viper) (providers.Metrics, error)

Types

type Metrics

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

func New

func New() *Metrics

func (*Metrics) Dec

func (m *Metrics) Dec(name string, labels ...string)

func (*Metrics) Inc

func (m *Metrics) Inc(name string, labels ...string)

func (*Metrics) Observe

func (m *Metrics) Observe(name string, value float64, labels ...string)

func (*Metrics) RegisterGauge

func (m *Metrics) RegisterGauge(name string, labels ...string)

RegisterGauge registers a new gauge with the given name and labels

func (*Metrics) RegisterHistogram

func (m *Metrics) RegisterHistogram(name string, labels ...string)

func (*Metrics) Set

func (m *Metrics) Set(name string, value float64, labels ...string)

Jump to

Keyboard shortcuts

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