parent
cc02f82ddd
commit
42ee365914
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
// NewCounter registers and returns new counter with the given name.
|
// NewCounter registers and returns new counter with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -62,7 +62,7 @@ func (c *Counter) marshalTo(prefix string, w io.Writer) {
|
|||||||
// or creates new counter if the registry doesn't contain counter with
|
// or creates new counter if the registry doesn't contain counter with
|
||||||
// the given name.
|
// the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
|
2
gauge.go
2
gauge.go
@ -48,7 +48,7 @@ func (g *Gauge) marshalTo(prefix string, w io.Writer) {
|
|||||||
// or creates new gauge if the registry doesn't contain gauge with
|
// or creates new gauge if the registry doesn't contain gauge with
|
||||||
// the given name.
|
// the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
|
14
set.go
14
set.go
@ -47,7 +47,7 @@ func (s *Set) WritePrometheus(w io.Writer) {
|
|||||||
|
|
||||||
// NewCounter registers and returns new counter with the given name in the s.
|
// NewCounter registers and returns new counter with the given name in the s.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -64,7 +64,7 @@ func (s *Set) NewCounter(name string) *Counter {
|
|||||||
// GetOrCreateCounter returns registered counter in s with the given name
|
// GetOrCreateCounter returns registered counter in s with the given name
|
||||||
// or creates new counter if s doesn't contain counter with the given name.
|
// or creates new counter if s doesn't contain counter with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -130,7 +130,7 @@ func (s *Set) NewGauge(name string, f func() float64) *Gauge {
|
|||||||
// GetOrCreateGauge returns registered gauge with the given name in s
|
// GetOrCreateGauge returns registered gauge with the given name in s
|
||||||
// or creates new gauge if s doesn't contain gauge with the given name.
|
// or creates new gauge if s doesn't contain gauge with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -176,7 +176,7 @@ func (s *Set) GetOrCreateGauge(name string, f func() float64) *Gauge {
|
|||||||
|
|
||||||
// NewSummary creates and returns new summary with the given name in s.
|
// NewSummary creates and returns new summary with the given name in s.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -191,7 +191,7 @@ func (s *Set) NewSummary(name string) *Summary {
|
|||||||
// NewSummaryExt creates and returns new summary in s with the given name,
|
// NewSummaryExt creates and returns new summary in s with the given name,
|
||||||
// window and quantiles.
|
// window and quantiles.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -213,7 +213,7 @@ func (s *Set) NewSummaryExt(name string, window time.Duration, quantiles []float
|
|||||||
// GetOrCreateSummary returns registered summary with the given name in s
|
// GetOrCreateSummary returns registered summary with the given name in s
|
||||||
// or creates new summary if s doesn't contain summary with the given name.
|
// or creates new summary if s doesn't contain summary with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -231,7 +231,7 @@ func (s *Set) GetOrCreateSummary(name string) *Summary {
|
|||||||
// window and quantiles in s or creates new summary if s doesn't
|
// window and quantiles in s or creates new summary if s doesn't
|
||||||
// contain summary with the given name.
|
// contain summary with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
|
@ -33,7 +33,7 @@ type Summary struct {
|
|||||||
|
|
||||||
// NewSummary creates and returns new summary with the given name.
|
// NewSummary creates and returns new summary with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -48,7 +48,7 @@ func NewSummary(name string) *Summary {
|
|||||||
// NewSummaryExt creates and returns new summary with the given name,
|
// NewSummaryExt creates and returns new summary with the given name,
|
||||||
// window and quantiles.
|
// window and quantiles.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -137,7 +137,7 @@ func (sm *Summary) updateQuantiles() {
|
|||||||
// or creates new summary if the registry doesn't contain summary with
|
// or creates new summary if the registry doesn't contain summary with
|
||||||
// the given name.
|
// the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
@ -155,7 +155,7 @@ func GetOrCreateSummary(name string) *Summary {
|
|||||||
// window and quantiles or creates new summary if the registry doesn't
|
// window and quantiles or creates new summary if the registry doesn't
|
||||||
// contain summary with the given name.
|
// contain summary with the given name.
|
||||||
//
|
//
|
||||||
// name must be valid Prometheus-compatible metric with possible lables.
|
// name must be valid Prometheus-compatible metric with possible labels.
|
||||||
// For instance,
|
// For instance,
|
||||||
//
|
//
|
||||||
// * foo
|
// * foo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user