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)
| 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. |
| 562 | func 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. |
| 570 | func (v2) NewSummaryVec(opts SummaryVecOpts) *SummaryVec { |