NewGaugeVec creates a new GaugeVec based on the provided GaugeOpts and partitioned by the given label names.
(opts GaugeOpts, labelNames []string)
| 150 | // NewGaugeVec creates a new GaugeVec based on the provided GaugeOpts and |
| 151 | // partitioned by the given label names. |
| 152 | func NewGaugeVec(opts GaugeOpts, labelNames []string) *GaugeVec { |
| 153 | return V2.NewGaugeVec(GaugeVecOpts{ |
| 154 | GaugeOpts: opts, |
| 155 | VariableLabels: UnconstrainedLabels(labelNames), |
| 156 | }) |
| 157 | } |
| 158 | |
| 159 | // NewGaugeVec creates a new GaugeVec based on the provided GaugeVecOpts. |
| 160 | func (v2) NewGaugeVec(opts GaugeVecOpts) *GaugeVec { |