Skip to content

Commit

Permalink
remove further custom type references for LabelAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
francoposa committed Jan 2, 2025
1 parent 823590d commit 764c9f6
Show file tree
Hide file tree
Showing 8 changed files with 407 additions and 308 deletions.
178 changes: 97 additions & 81 deletions pkg/frontend/querymiddleware/model.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/frontend/querymiddleware/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ message PrometheusData {
}

message SampleStream {
repeated cortexpb_custom.LabelAdapter labels = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "metric", (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb_custom.LabelAdapter"];
repeated cortexpb_custom.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
206 changes: 120 additions & 86 deletions pkg/ruler/ruler.pb.go

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions pkg/ruler/ruler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ message RuleStateDesc {
message AlertStateDesc {
string state = 1;
repeated cortexpb_custom.LabelAdapter labels = 2 [
(gogoproto.nullable) = false,
(gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb_custom.LabelAdapter"
(gogoproto.nullable) = false
];
repeated cortexpb_custom.LabelAdapter annotations = 3 [
(gogoproto.nullable) = false,
(gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb_custom.LabelAdapter"
(gogoproto.nullable) = false
];
double value = 4;
google.protobuf.Timestamp active_at = 5
Expand Down
161 changes: 97 additions & 64 deletions pkg/ruler/rulespb/rules.pb.go

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

6 changes: 2 additions & 4 deletions pkg/ruler/rulespb/rules.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ message RuleDesc {
google.protobuf.Duration for = 4 [(gogoproto.nullable) = false,(gogoproto.stdduration) = true];
google.protobuf.Duration keep_firing_for = 13 [(gogoproto.nullable) = false,(gogoproto.stdduration) = true];
repeated cortexpb_custom.LabelAdapter labels = 5 [
(gogoproto.nullable) = false,
(gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb_custom.LabelAdapter"
(gogoproto.nullable) = false
];
repeated cortexpb_custom.LabelAdapter annotations = 6 [
(gogoproto.nullable) = false,
(gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb_custom.LabelAdapter"
(gogoproto.nullable) = false
];
}
Loading

0 comments on commit 764c9f6

Please sign in to comment.