func NewTimestampedMetric()

in timestamped_metric.go [24:34]


func NewTimestampedMetric(
	valueType prometheus.ValueType, opts prometheus.Opts,
) *TimestampedMetric {
	fqName := strings.Join(
		[]string{opts.Namespace, opts.Subsystem, opts.Name}, "_",
	)
	return &TimestampedMetric{
		desc:      prometheus.NewDesc(fqName, opts.Help, nil, opts.ConstLabels),
		valueType: valueType,
	}
}