prom

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package prom wraps prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter is a prom metric.

func NewCounter

func NewCounter(opts prometheus.GaugeOpts, labels ...string) *Counter

NewCounter factory method for Counter.

func (*Counter) Build

func (m *Counter) Build() metrics.Counter

Build metric instance.

func (*Counter) With

func (m *Counter) With(labelsAndValues ...string) metrics.CounterBuilder

With append new values.

type Histo

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

Histo is a prom metric.

func NewHisto

func NewHisto(opts prometheus.HistogramOpts, labels ...string) *Histo

NewHisto factory method for Histo.

func (*Histo) Build

func (m *Histo) Build() metrics.Histo

Build metric instance.

func (*Histo) With

func (m *Histo) With(labelsAndValues ...string) metrics.HistoBuilder

With append new values.

type Increment

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

Increment is a prom metric.

func NewIncrement

func NewIncrement(opts prometheus.CounterOpts, labels ...string) *Increment

NewIncrement factory method for Increment.

func (*Increment) Build

func (m *Increment) Build() metrics.Increment

Build metric instance.

func (*Increment) With

func (m *Increment) With(labelsAndValues ...string) metrics.IncrementBuilder

With append new values.

Jump to

Keyboard shortcuts

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