MCPcopy
hub / github.com/prometheus/client_golang / NewSummaryVec

Function NewSummaryVec

prometheus/summary.go:562–567  ·  view source on GitHub ↗

NewSummaryVec creates a new SummaryVec based on the provided SummaryOpts and partitioned by the given label names. Due to the way a Summary is represented in the Prometheus text format and how it is handled by the Prometheus server internally, “quantile” is an illegal label name. NewSummaryVec will

(opts SummaryOpts, labelNames []string)

Source from the content-addressed store, hash-verified

560// it is handled by the Prometheus server internally, “quantile” is an illegal
561// label name. NewSummaryVec will panic if this label name is used.
562func NewSummaryVec(opts SummaryOpts, labelNames []string) *SummaryVec {
563 return V2.NewSummaryVec(SummaryVecOpts{
564 SummaryOpts: opts,
565 VariableLabels: UnconstrainedLabels(labelNames),
566 })
567}
568
569// NewSummaryVec creates a new SummaryVec based on the provided SummaryVecOpts.
570func (v2) NewSummaryVec(opts SummaryVecOpts) *SummaryVec {

Callers 9

ExampleSummaryVecFunction · 0.92
TestWriteToTextfileFunction · 0.92
testWriteSummaryFunction · 0.92
NewSummaryVecMethod · 0.92
NewMetricsFunction · 0.92

Calls 2

UnconstrainedLabelsTypeAlias · 0.85
NewSummaryVecMethod · 0.45

Tested by 7

ExampleSummaryVecFunction · 0.74
TestWriteToTextfileFunction · 0.74
testWriteSummaryFunction · 0.74