Skip to content

Commit

Permalink
update all usages of LabelPair:LabelAdapater
Browse files Browse the repository at this point in the history
  • Loading branch information
francoposa committed Dec 27, 2024
1 parent 7ce5867 commit 1363c18
Show file tree
Hide file tree
Showing 18 changed files with 666 additions and 520 deletions.
23 changes: 12 additions & 11 deletions pkg/distributor/distributorpb/distributor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/distributor/distributorpb/distributor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ option go_package = "distributorpb";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto";

option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
Expand Down
171 changes: 94 additions & 77 deletions pkg/frontend/querymiddleware/model.pb.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pkg/frontend/querymiddleware/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ option go_package = "querymiddleware";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto";
import "google/protobuf/any.proto";

option (gogoproto.marshaler_all) = true;
Expand All @@ -38,7 +39,7 @@ message PrometheusData {
}

message SampleStream {
repeated cortexpb.LabelPair labels = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "metric", (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter"];
repeated cortexpb.LabelAdapter labels = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "metric"];
repeated cortexpb.Sample samples = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "values"];
repeated cortexpb.FloatHistogramPair histograms = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "histograms"];
}
Expand Down
298 changes: 167 additions & 131 deletions pkg/ingester/client/ingester.pb.go

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pkg/ingester/client/ingester.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ option go_package = "client";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto";

option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
Expand Down Expand Up @@ -123,7 +124,7 @@ message QueryStreamResponse {
}

message QueryStreamSeries {
repeated cortexpb.LabelPair labels = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter"];
repeated cortexpb.LabelAdapter labels = 1 [(gogoproto.nullable) = false];
int64 chunk_count = 2;
}

Expand Down Expand Up @@ -207,7 +208,7 @@ message ActiveSeriesResponse {
message TimeSeriesChunk {
string from_ingester_id = 1;
string user_id = 2;
repeated cortexpb.LabelPair labels = 3 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter"];
repeated cortexpb.LabelAdapter labels = 3 [(gogoproto.nullable) = false];
repeated Chunk chunks = 4 [(gogoproto.nullable) = false];
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/mimirpb/mimir.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package cortexpb;
option go_package = "mimirpb";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "mimir_extra.proto";
import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto";

option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
Expand Down
File renamed without changes.
Loading

0 comments on commit 1363c18

Please sign in to comment.