prometheus

package
v0.0.0-...-bbc86cb Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameSpacePrometheus = "geekymedic"
	SubSystemPrometheus = ""
)

Variables

This section is empty.

Functions

func StartMetricsServer

func StartMetricsServer(addr, path string) error

Types

type Counter

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

func MustCounter

func MustCounter(name string) *Counter

func MustCounterWithLabelNames

func MustCounterWithLabelNames(name string, labelNames ...string) *Counter

func NewCounter

func NewCounter(name string) (*Counter, error)

func NewCounterWithLabelNames

func NewCounterWithLabelNames(name string, labelNames ...string) (*Counter, error)

func (*Counter) Add

func (counter *Counter) Add(delta float64)

func (*Counter) Inc

func (counter *Counter) Inc()

func (*Counter) With

func (counter *Counter) With(labValues ...string) metrics.Counter

type Gauge

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

func MustGague

func MustGague(name string) *Gauge

func MustGagueWithLabelNames

func MustGagueWithLabelNames(name string, labelNames ...string) *Gauge

func NewGague

func NewGague(name string) (*Gauge, error)

func NewGagueWithLabelNames

func NewGagueWithLabelNames(name string, labelNames ...string) (*Gauge, error)

func (*Gauge) Add

func (gague *Gauge) Add(delta float64)

func (*Gauge) Set

func (gague *Gauge) Set(value float64)

func (*Gauge) Sub

func (gague *Gauge) Sub(value float64)

func (*Gauge) With

func (gague *Gauge) With(labValues ...string) metrics.Gauge

type Histogram

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

func MustHistogram

func MustHistogram(name string) *Histogram

func MustHistogramWithLabelNames

func MustHistogramWithLabelNames(name string, labelNames ...string) *Histogram

func NewHistogram

func NewHistogram(name string) (*Histogram, error)

func NewHistogramWithLabelNames

func NewHistogramWithLabelNames(name string, labelNames ...string) (*Histogram, error)

func (*Histogram) Observe

func (h *Histogram) Observe(value float64)

func (*Histogram) With

func (h *Histogram) With(labValues ...string) *Histogram

type Summary

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

func MustSummaryWithLabelNames

func MustSummaryWithLabelNames(name string, objectives map[float64]float64, labelNames ...string) *Summary

func MustSummay

func MustSummay(name string, objectives map[float64]float64) *Summary

func NewSummary

func NewSummary(name string, objectives map[float64]float64) (*Summary, error)

func NewSummaryWithLabelNames

func NewSummaryWithLabelNames(name string, objectives map[float64]float64, labelNames ...string) (*Summary, error)

func (*Summary) Observe

func (s *Summary) Observe(value float64)

func (*Summary) With

func (s *Summary) With(labValues ...string) *Summary

Jump to

Keyboard shortcuts

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