type ValueType … const _ … const CounterValue … const GaugeValue … const UntypedValue … func (vt *ValueType) toPromValueType() prometheus.ValueType { … } // NewLazyConstMetric is a helper of MustNewConstMetric. // // Note: If the metrics described by the desc is hidden, the metrics will not be created. func NewLazyConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) Metric { … } // NewConstMetric is a helper of NewConstMetric. // // Note: If the metrics described by the desc is hidden, the metrics will not be created. func NewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) (Metric, error) { … } // NewLazyMetricWithTimestamp is a helper of NewMetricWithTimestamp. // // Warning: the Metric 'm' must be the one created by NewLazyConstMetric(), // otherwise, no stability guarantees would be offered. func NewLazyMetricWithTimestamp(t time.Time, m Metric) Metric { … }