prometheus

package
v0.0.0-...-65429f0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GaugeVec

type GaugeVec interface {
	Observe(float64, prometheus.Labels)
	Unregister() bool
}

func NewGaugeVec

func NewGaugeVec(namespace, name, description string, bukets []float64, constLabels map[string]string, labelNames []string) (GaugeVec, error)

type HistogramVec

type HistogramVec interface {
	Start() HistogramVec
	Finished(constLabels map[string]string)
	Success()
	Error(code string)
	With(prometheus.Labels) prometheus.Observer
	Observe(float64, prometheus.Labels)
	Unregister() bool
}

func NewHistogramVec

func NewHistogramVec(namespace, name, description string, bukets []float64, constLabels map[string]string, labelNames []string) (HistogramVec, error)

type PrometheusMetricBuilder

type PrometheusMetricBuilder interface {
	Namespace(string) PrometheusMetricBuilder
	Name(string) PrometheusMetricBuilder
	Help(string) PrometheusMetricBuilder
	ConstLabels(map[string]string) PrometheusMetricBuilder
	LabelNames([]string) PrometheusMetricBuilder
	//BuildCounterVec() *prometheus.CounterVec
	BuildHistogramVec() (HistogramVec, error)
	BuildGougeVec() (GaugeVec, error)
}

func NewBuilder

func NewBuilder() PrometheusMetricBuilder

Jump to

Keyboard shortcuts

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