convertnhcb

package
v0.301.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHistogramMetricBase

func GetHistogramMetricBase(m labels.Labels, name string) labels.Labels

Types

type SuffixType added in v0.301.0

type SuffixType int
const (
	SuffixNone SuffixType = iota
	SuffixBucket
	SuffixSum
	SuffixCount
)

func GetHistogramMetricBaseName

func GetHistogramMetricBaseName(s string) (SuffixType, string)

GetHistogramMetricBaseName removes the suffixes _bucket, _sum, _count from the metric name. We specifically do not remove the _created suffix as that should be removed by the caller.

type TempHistogram

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

TempHistogram is used to collect information about classic histogram samples incrementally before creating a histogram.Histogram or histogram.FloatHistogram based on the values collected.

func NewTempHistogram

func NewTempHistogram() TempHistogram

NewTempHistogram creates a new TempHistogram to collect information about classic histogram samples.

func (TempHistogram) Convert added in v0.301.0

func (TempHistogram) Err added in v0.301.0

func (h TempHistogram) Err() error

func (*TempHistogram) Reset added in v0.301.0

func (h *TempHistogram) Reset()

func (*TempHistogram) SetBucketCount added in v0.301.0

func (h *TempHistogram) SetBucketCount(boundary, count float64) error

func (*TempHistogram) SetCount added in v0.301.0

func (h *TempHistogram) SetCount(count float64) error

func (*TempHistogram) SetSum added in v0.301.0

func (h *TempHistogram) SetSum(sum float64) error

Jump to

Keyboard shortcuts

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