@@ -619,7 +619,7 @@ foos_total 42.0
619619# UNIT name_seconds seconds
620620` ,
621621 },
622- // 15: Histogram plus unit, but unit not opted in.
622+ // 15: Histogram plus unit
623623 {
624624 in : & dto.MetricFamily {
625625 Name : proto .String ("request_duration_microseconds" ),
@@ -669,33 +669,7 @@ request_duration_microseconds_sum 1.7560473e+06
669669request_duration_microseconds_count 2693
670670` ,
671671 },
672- // 16: No metric, unit opted in, no unit in name.
673- {
674- in : & dto.MetricFamily {
675- Name : proto .String ("name_total" ),
676- Help : proto .String ("doc string" ),
677- Type : dto .MetricType_COUNTER .Enum (),
678- Unit : proto .String ("seconds" ),
679- Metric : []* dto.Metric {},
680- },
681- out : `# HELP name doc string
682- # TYPE name counter
683- # UNIT name seconds
684- ` ,
685- },
686- // 17: No metric, unit opted in, BUT unit == nil.
687- {
688- in : & dto.MetricFamily {
689- Name : proto .String ("name_total" ),
690- Help : proto .String ("doc string" ),
691- Type : dto .MetricType_COUNTER .Enum (),
692- Metric : []* dto.Metric {},
693- },
694- out : `# HELP name doc string
695- # TYPE name counter
696- ` ,
697- },
698- // 18: Counter, timestamp given, unit opted in, _total suffix.
672+ // 16: Counter, timestamp given, unit given, _total suffix.
699673 {
700674 in : & dto.MetricFamily {
701675 Name : proto .String ("some_measure_total" ),
@@ -743,7 +717,7 @@ some_measure_total{labelname="val1",basename="basevalue"} 42.0
743717some_measure_total{labelname="val2",basename="basevalue"} 0.23 1.23456789e+06
744718` ,
745719 },
746- // 11 : Gauge histogram.
720+ // 17 : Gauge histogram.
747721 {
748722 in : & dto.MetricFamily {
749723 Name : proto .String ("name" ),
0 commit comments