File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ import (
2222"strconv"
2323"strings"
2424
25- "github.com/prometheus/common/model"
2625"google.golang.org/protobuf/types/known/timestamppb"
2726
27+ "github.com/prometheus/common/model"
28+
2829dto "github.com/prometheus/client_model/go"
2930)
3031
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func TestCreateOpenMetrics(t *testing.T) {
3232t .Error (err )
3333}
3434
35- var scenarios = []struct {
35+ scenarios : = []struct {
3636in * dto.MetricFamily
3737options []ToOpenMetricsOption
3838out string
@@ -543,7 +543,7 @@ foos_created 12345.6
543543Help : proto .String ("Number of foos." ),
544544Type : dto .MetricType_COUNTER .Enum (),
545545Metric : []* dto.Metric {
546- & dto. Metric {
546+ {
547547Counter : & dto.Counter {
548548Value : proto .Float64 (42 ),
549549CreatedTimestamp : openMetricsTimestamp ,
You can’t perform that action at this time.
0 commit comments