diff --git a/pkg/distributor/distributorpb/distributor.pb.go b/pkg/distributor/distributorpb/distributor.pb.go index 8ffe5387f26..81450249196 100644 --- a/pkg/distributor/distributorpb/distributor.pb.go +++ b/pkg/distributor/distributorpb/distributor.pb.go @@ -29,22 +29,23 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("distributor.proto", fileDescriptor_c518e33639ca565d) } var fileDescriptor_c518e33639ca565d = []byte{ - // 225 bytes of a gzipped FileDescriptorProto + // 243 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0xc9, 0x2c, 0x2e, 0x29, 0xca, 0x4c, 0x2a, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x46, 0x12, 0x92, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0xab, 0x49, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0xa2, 0x57, 0xca, 0x00, 0x59, 0x79, 0x51, 0x62, 0x5a, 0x62, 0x5e, 0xa2, 0x7e, 0x6e, 0x66, 0x6e, 0x66, 0x91, - 0x7e, 0x41, 0x76, 0x3a, 0x84, 0x55, 0x90, 0x04, 0xa1, 0x21, 0x3a, 0x8c, 0x3c, 0xb8, 0xb8, 0x5d, - 0x10, 0xf6, 0x09, 0x59, 0x72, 0xb1, 0x04, 0x94, 0x16, 0x67, 0x08, 0x89, 0xe9, 0x25, 0xe7, 0x17, - 0x95, 0xa4, 0x56, 0x14, 0x24, 0xe9, 0x85, 0x17, 0x65, 0x96, 0xa4, 0x06, 0xa5, 0x16, 0x96, 0xa6, - 0x16, 0x97, 0x48, 0x89, 0x63, 0x88, 0x17, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x2a, 0x31, 0x38, 0x39, - 0x5f, 0x78, 0x28, 0xc7, 0x70, 0xe3, 0xa1, 0x1c, 0xc3, 0x87, 0x87, 0x72, 0x8c, 0x0d, 0x8f, 0xe4, - 0x18, 0x57, 0x3c, 0x92, 0x63, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, - 0xe4, 0x18, 0x5f, 0x3c, 0x92, 0x63, 0xf8, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, - 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xe2, 0x45, 0xf2, 0x6d, 0x41, 0x52, 0x12, 0x1b, - 0xd8, 0x55, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0x48, 0xef, 0xb2, 0x18, 0x01, 0x00, - 0x00, + 0x7e, 0x41, 0x76, 0x3a, 0x84, 0x55, 0x90, 0x04, 0xa1, 0xa1, 0x3a, 0x6c, 0x89, 0xd7, 0x11, 0x9f, + 0x5c, 0x5a, 0x5c, 0x92, 0x9f, 0x1b, 0x5f, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0xd1, 0x6e, 0xe4, 0xc1, + 0xc5, 0xed, 0x82, 0x70, 0xae, 0x90, 0x25, 0x17, 0x4b, 0x40, 0x69, 0x71, 0x86, 0x90, 0x98, 0x5e, + 0x72, 0x7e, 0x51, 0x49, 0x6a, 0x45, 0x41, 0x92, 0x5e, 0x78, 0x51, 0x66, 0x49, 0x6a, 0x50, 0x6a, + 0x61, 0x69, 0x6a, 0x71, 0x89, 0x94, 0x38, 0x86, 0x78, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x12, + 0x83, 0x93, 0xf3, 0x85, 0x87, 0x72, 0x0c, 0x37, 0x1e, 0xca, 0x31, 0x7c, 0x78, 0x28, 0xc7, 0xd8, + 0xf0, 0x48, 0x8e, 0x71, 0xc5, 0x23, 0x39, 0xc6, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, + 0x7c, 0xf0, 0x48, 0x8e, 0xf1, 0xc5, 0x23, 0x39, 0x86, 0x0f, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, + 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x5e, 0xa4, 0xc0, 0x2a, 0x48, + 0x4a, 0x62, 0x03, 0xbb, 0xca, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x92, 0xbb, 0x3a, 0x34, 0x57, + 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/pkg/distributor/distributorpb/distributor.proto b/pkg/distributor/distributorpb/distributor.proto index 576a244afcd..f7d53b853a7 100644 --- a/pkg/distributor/distributorpb/distributor.proto +++ b/pkg/distributor/distributorpb/distributor.proto @@ -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; diff --git a/pkg/frontend/querymiddleware/model.pb.go b/pkg/frontend/querymiddleware/model.pb.go index 47f80838c30..7be2121f887 100644 --- a/pkg/frontend/querymiddleware/model.pb.go +++ b/pkg/frontend/querymiddleware/model.pb.go @@ -11,7 +11,6 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" - github_com_grafana_mimir_pkg_mimirpb "github.com/grafana/mimir/pkg/mimirpb" mimirpb "github.com/grafana/mimir/pkg/mimirpb" io "io" math "math" @@ -225,9 +224,9 @@ func (m *PrometheusData) GetResult() []SampleStream { } type SampleStream struct { - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"metric"` - Samples []mimirpb.Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"values"` - Histograms []mimirpb.FloatHistogramPair `protobuf:"bytes,3,rep,name=histograms,proto3" json:"histograms"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3" json:"metric"` + Samples []mimirpb.Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"values"` + Histograms []mimirpb.FloatHistogramPair `protobuf:"bytes,3,rep,name=histograms,proto3" json:"histograms"` } func (m *SampleStream) Reset() { *m = SampleStream{} } @@ -262,6 +261,13 @@ func (m *SampleStream) XXX_DiscardUnknown() { var xxx_messageInfo_SampleStream proto.InternalMessageInfo +func (m *SampleStream) GetLabels() []mimirpb.LabelAdapter { + if m != nil { + return m.Labels + } + return nil +} + func (m *SampleStream) GetSamples() []mimirpb.Sample { if m != nil { return m.Samples @@ -728,72 +734,72 @@ func init() { proto.RegisterFile("model.proto", fileDescriptor_4c16552f9fdb66d8) var fileDescriptor_4c16552f9fdb66d8 = []byte{ // 1061 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xc6, 0xff, 0x9f, 0xd3, 0xc4, 0x9a, 0x44, 0xe0, 0x04, 0xd8, 0xb5, 0x56, 0x1c, 0x02, - 0xb4, 0x0e, 0x84, 0x3f, 0x07, 0x44, 0x11, 0x75, 0x1a, 0x94, 0x40, 0x0b, 0x61, 0x1c, 0x81, 0xc4, - 0x25, 0x1a, 0x7b, 0x27, 0xf6, 0xd2, 0xdd, 0x9d, 0x65, 0x66, 0xdc, 0xd6, 0x37, 0xc4, 0x15, 0x09, - 0xf1, 0x09, 0x38, 0xf3, 0x51, 0x7a, 0xcc, 0xb1, 0xea, 0x61, 0x45, 0x1c, 0x21, 0xa1, 0x3d, 0xf5, - 0x03, 0x70, 0x40, 0x3b, 0xb3, 0xff, 0xd2, 0x46, 0x88, 0x8b, 0x3d, 0xef, 0xf7, 0x7e, 0xbf, 0x37, - 0x6f, 0xde, 0xbc, 0x79, 0x0b, 0x1d, 0x9f, 0x39, 0xd4, 0x1b, 0x84, 0x9c, 0x49, 0x86, 0xe0, 0xc7, - 0x39, 0xe5, 0x0b, 0x4e, 0x82, 0x29, 0xdd, 0xbe, 0x35, 0x75, 0xe5, 0x6c, 0x3e, 0x1e, 0x4c, 0x98, - 0xbf, 0x3b, 0x65, 0x53, 0xb6, 0xab, 0x28, 0xe3, 0xf9, 0x99, 0xb2, 0x94, 0xa1, 0x56, 0x5a, 0xba, - 0xfd, 0x6e, 0x99, 0xce, 0xc9, 0x19, 0x09, 0xc8, 0xae, 0xef, 0xfa, 0x2e, 0xdf, 0x0d, 0x1f, 0x4c, - 0xf5, 0x2a, 0x1c, 0xeb, 0xff, 0x54, 0xb1, 0x35, 0x65, 0x6c, 0xea, 0xd1, 0x22, 0x2e, 0x09, 0x16, - 0xda, 0x65, 0xdf, 0x83, 0xee, 0x31, 0x67, 0x3e, 0x95, 0x33, 0x3a, 0x17, 0x87, 0x94, 0x38, 0x94, - 0xa3, 0x2d, 0xa8, 0x7d, 0x45, 0x7c, 0xda, 0x33, 0xfa, 0xc6, 0x4e, 0x7b, 0x58, 0x8f, 0x23, 0xcb, - 0xb8, 0x85, 0x15, 0x84, 0xde, 0x80, 0xc6, 0xb7, 0xc4, 0x9b, 0x53, 0xd1, 0x5b, 0xe9, 0x57, 0x0b, - 0x67, 0x0a, 0xda, 0xff, 0xac, 0x00, 0x2a, 0xc2, 0x61, 0x2a, 0x42, 0x16, 0x08, 0x8a, 0x6c, 0x68, - 0x8c, 0x24, 0x91, 0x73, 0x91, 0x86, 0x84, 0x38, 0xb2, 0x1a, 0x42, 0x21, 0x38, 0xf5, 0xa0, 0x21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 0xa6, 0xca, 0xd6, 0x77, 0x1d, 0xc7, 0xa3, 0x4f, + 0x08, 0xa7, 0x93, 0x86, 0x6a, 0xd7, 0xf7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xd0, 0xa1, + 0x96, 0x39, 0x08, 0x00, 0x00, } func (this *PrometheusHeader) Equal(that interface{}) bool { @@ -940,7 +946,7 @@ func (this *SampleStream) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -1239,7 +1245,13 @@ func (this *SampleStream) GoString() string { } s := make([]string, 0, 7) s = append(s, "&querymiddleware.SampleStream{") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } if this.Samples != nil { vs := make([]*mimirpb.Sample, len(this.Samples)) for i := range vs { @@ -1582,11 +1594,11 @@ func (m *SampleStream) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintModel(dAtA, i, uint64(size)) } i-- @@ -2247,6 +2259,11 @@ func (this *SampleStream) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" repeatedStringForSamples := "[]Sample{" for _, f := range this.Samples { repeatedStringForSamples += fmt.Sprintf("%v", f) + "," @@ -2258,7 +2275,7 @@ func (this *SampleStream) String() string { } repeatedStringForHistograms += "}" s := strings.Join([]string{`&SampleStream{`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, + `Labels:` + repeatedStringForLabels + `,`, `Samples:` + repeatedStringForSamples + `,`, `Histograms:` + repeatedStringForHistograms + `,`, `}`, @@ -2945,7 +2962,7 @@ func (m *SampleStream) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/pkg/frontend/querymiddleware/model.proto b/pkg/frontend/querymiddleware/model.proto index 0a4951cfcd5..c65fa8cb024 100644 --- a/pkg/frontend/querymiddleware/model.proto +++ b/pkg/frontend/querymiddleware/model.proto @@ -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; @@ -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"]; } diff --git a/pkg/ingester/client/ingester.pb.go b/pkg/ingester/client/ingester.pb.go index bbefc14b1e4..32a7cbdaf5c 100644 --- a/pkg/ingester/client/ingester.pb.go +++ b/pkg/ingester/client/ingester.pb.go @@ -708,8 +708,8 @@ func (m *QueryStreamResponse) GetStreamingSeriesChunks() []QueryStreamSeriesChun } type QueryStreamSeries struct { - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` - ChunkCount int64 `protobuf:"varint,2,opt,name=chunk_count,json=chunkCount,proto3" json:"chunk_count,omitempty"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` + ChunkCount int64 `protobuf:"varint,2,opt,name=chunk_count,json=chunkCount,proto3" json:"chunk_count,omitempty"` } func (m *QueryStreamSeries) Reset() { *m = QueryStreamSeries{} } @@ -744,6 +744,13 @@ func (m *QueryStreamSeries) XXX_DiscardUnknown() { var xxx_messageInfo_QueryStreamSeries proto.InternalMessageInfo +func (m *QueryStreamSeries) GetLabels() []mimirpb.LabelAdapter { + if m != nil { + return m.Labels + } + return nil +} + func (m *QueryStreamSeries) GetChunkCount() int64 { if m != nil { return m.ChunkCount @@ -1519,10 +1526,10 @@ func (m *ActiveSeriesResponse) GetBucketCount() []uint64 { } type TimeSeriesChunk struct { - FromIngesterId string `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,3,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` - Chunks []Chunk `protobuf:"bytes,4,rep,name=chunks,proto3" json:"chunks"` + FromIngesterId string `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels"` + Chunks []Chunk `protobuf:"bytes,4,rep,name=chunks,proto3" json:"chunks"` } func (m *TimeSeriesChunk) Reset() { *m = TimeSeriesChunk{} } @@ -1571,6 +1578,13 @@ func (m *TimeSeriesChunk) GetUserId() string { return "" } +func (m *TimeSeriesChunk) GetLabels() []mimirpb.LabelAdapter { + if m != nil { + return m.Labels + } + return nil +} + func (m *TimeSeriesChunk) GetChunks() []Chunk { if m != nil { return m.Chunks @@ -1781,117 +1795,117 @@ func init() { func init() { proto.RegisterFile("ingester.proto", fileDescriptor_60f6df4f3586b478) } var fileDescriptor_60f6df4f3586b478 = []byte{ - // 1748 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4b, 0x6f, 0x1b, 0xc9, - 0x11, 0x66, 0xf3, 0xb5, 0x62, 0x91, 0x92, 0xa8, 0xa6, 0x24, 0x72, 0x47, 0xab, 0x91, 0x76, 0x02, - 0xef, 0x32, 0x9b, 0x5d, 0xc9, 0xaf, 0x2c, 0xbc, 0x9b, 0x0d, 0x02, 0x4a, 0xa6, 0x2d, 0xda, 0xa6, - 0x24, 0x0f, 0x25, 0xe7, 0x01, 0x18, 0x83, 0x21, 0xd9, 0x92, 0x06, 0xe2, 0x0c, 0x99, 0x99, 0xa6, - 0x61, 0xf9, 0x94, 0x53, 0xce, 0xf9, 0x01, 0x41, 0x80, 0xdc, 0x82, 0x1c, 0x73, 0xc9, 0x25, 0xc8, - 0xd9, 0x97, 0x00, 0xbe, 0xc5, 0x08, 0x10, 0x23, 0x96, 0x2f, 0xc9, 0xcd, 0x40, 0xfe, 0x40, 0x30, - 0xdd, 0x3d, 0x4f, 0x52, 0x12, 0x65, 0xc4, 0x3e, 0x91, 0x5d, 0xaf, 0xfe, 0xaa, 0xba, 0xba, 0xaa, - 0xa6, 0x61, 0xc6, 0xb0, 0x0e, 0x89, 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0, 0xe0, 0x27, 0x1d, 0xfe, 0x09, 0x64, 0x1f, 0x4f, 0xe8, 0x09, 0x8e, 0x64, 0xd4, 0xcf, 0x5d, + 0x8b, 0x11, 0x79, 0xbd, 0x95, 0xea, 0x94, 0x5c, 0x5c, 0x1b, 0x2d, 0x85, 0x1f, 0x40, 0x31, 0x32, + 0x56, 0xe1, 0x95, 0xd8, 0x3c, 0xe8, 0xdb, 0xaf, 0xce, 0x98, 0x12, 0x43, 0x1f, 0x77, 0x10, 0xde, + 0x87, 0x25, 0xae, 0xf2, 0xc7, 0x26, 0x8a, 0x5f, 0xf3, 0x4d, 0x66, 0xbd, 0x45, 0x29, 0x6b, 0x17, + 0x68, 0x03, 0x5a, 0xbb, 0xf1, 0x8f, 0x10, 0xca, 0xac, 0xef, 0x15, 0x49, 0x72, 0x33, 0xa6, 0x13, + 0x2d, 0x85, 0x5b, 0x00, 0x61, 0x6f, 0xc7, 0xaf, 0xc6, 0xc0, 0xd1, 0x79, 0x44, 0x51, 0x66, 0xa9, + 0x02, 0x37, 0xdb, 0x50, 0x08, 0x3a, 0x14, 0xae, 0xcd, 0x68, 0x5a, 0xc2, 0xc9, 0xc5, 0xed, 0x4c, + 0x4b, 0xe1, 0x8f, 0xa0, 0xd4, 0x1c, 0x0e, 0xe7, 0x71, 0xa3, 0x44, 0x35, 0x34, 0xe9, 0x67, 0x18, + 0x54, 0xd5, 0x64, 0x53, 0xc0, 0x6f, 0x04, 0xf9, 0x7c, 0x69, 0xa7, 0x53, 0xde, 0xbc, 0x12, 0x17, + 0x3c, 0xed, 0x00, 0x6e, 0x24, 0x6a, 0x38, 0x56, 0x13, 0xd6, 0x89, 0x76, 0xa2, 0xac, 0x5f, 0xa8, + 0x0f, 0xbc, 0xf6, 0xe4, 0x34, 0x19, 0xff, 0x5e, 0x85, 0xb5, 0xe9, 0x43, 0x48, 0x7e, 0x54, 0x53, + 0x7e, 0x70, 0x29, 0x26, 0x92, 0x95, 0xa7, 0x70, 0x6b, 0xf6, 0x67, 0x1d, 0x7c, 0x7b, 0x46, 0xce, + 0x4c, 0x7f, 0xa2, 0x52, 0xde, 0xb8, 0x0a, 0x16, 0x79, 0x58, 0x07, 0x4a, 0xd1, 0xce, 0x84, 0x57, + 0x2f, 0x79, 0x8b, 0x56, 0x5e, 0x9b, 0xad, 0x0c, 0xdd, 0x6d, 0x7f, 0xf0, 0xf4, 0xb9, 0x9a, 0xfa, + 0xe6, 0xb9, 0x9a, 0xfa, 0xf6, 0xb9, 0x8a, 0x7e, 0x7b, 0xae, 0xa2, 0x3f, 0x9d, 0xab, 0xe8, 0xeb, + 0x73, 0x15, 0x3d, 0x3d, 0x57, 0xd1, 0xbf, 0xcf, 0x55, 0xf4, 0x9f, 0x73, 0x35, 0xf5, 0xed, 0xb9, + 0x8a, 0x7e, 0xff, 0x42, 0x4d, 0x3d, 0x7d, 0xa1, 0xa6, 0xbe, 0x79, 0xa1, 0xa6, 0x7e, 0x95, 0xef, + 0x0f, 0x2d, 0xe2, 0xb0, 0x5e, 0x9e, 0x7f, 0x9d, 0xbc, 0xf7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xd5, 0xb2, 0x00, 0xa7, 0x57, 0x15, 0x00, 0x00, } func (x CountMethod) String() string { @@ -2322,7 +2336,7 @@ func (this *QueryStreamSeries) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -2815,7 +2829,7 @@ func (this *TimeSeriesChunk) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -3108,7 +3122,13 @@ func (this *QueryStreamSeries) GoString() string { } s := make([]string, 0, 6) s = append(s, "&client.QueryStreamSeries{") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } s = append(s, "ChunkCount: "+fmt.Sprintf("%#v", this.ChunkCount)+",\n") s = append(s, "}") return strings.Join(s, "") @@ -3314,7 +3334,13 @@ func (this *TimeSeriesChunk) GoString() string { s = append(s, "&client.TimeSeriesChunk{") s = append(s, "FromIngesterId: "+fmt.Sprintf("%#v", this.FromIngesterId)+",\n") s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } if this.Chunks != nil { vs := make([]*Chunk, len(this.Chunks)) for i := range vs { @@ -4516,11 +4542,11 @@ func (m *QueryStreamSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintIngester(dAtA, i, uint64(size)) } i-- @@ -5176,11 +5202,11 @@ func (m *TimeSeriesChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintIngester(dAtA, i, uint64(size)) } i-- @@ -6137,8 +6163,13 @@ func (this *QueryStreamSeries) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" s := strings.Join([]string{`&QueryStreamSeries{`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, + `Labels:` + repeatedStringForLabels + `,`, `ChunkCount:` + fmt.Sprintf("%v", this.ChunkCount) + `,`, `}`, }, "") @@ -6348,6 +6379,11 @@ func (this *TimeSeriesChunk) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" repeatedStringForChunks := "[]Chunk{" for _, f := range this.Chunks { repeatedStringForChunks += strings.Replace(strings.Replace(f.String(), "Chunk", "Chunk", 1), `&`, ``, 1) + "," @@ -6356,7 +6392,7 @@ func (this *TimeSeriesChunk) String() string { s := strings.Join([]string{`&TimeSeriesChunk{`, `FromIngesterId:` + fmt.Sprintf("%v", this.FromIngesterId) + `,`, `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, + `Labels:` + repeatedStringForLabels + `,`, `Chunks:` + repeatedStringForChunks + `,`, `}`, }, "") @@ -7872,7 +7908,7 @@ func (m *QueryStreamSeries) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9665,7 +9701,7 @@ func (m *TimeSeriesChunk) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/pkg/ingester/client/ingester.proto b/pkg/ingester/client/ingester.proto index b2dd18b2a90..66d219dc422 100644 --- a/pkg/ingester/client/ingester.proto +++ b/pkg/ingester/client/ingester.proto @@ -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; @@ -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; } @@ -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]; } diff --git a/pkg/mimirpb/mimir.proto b/pkg/mimirpb/mimir.proto index 99abd6066d3..cd484616fd4 100644 --- a/pkg/mimirpb/mimir.proto +++ b/pkg/mimirpb/mimir.proto @@ -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; diff --git a/pkg/mimirpb/mimir_extra.proto b/pkg/mimirpb/mimir_custom_types.proto similarity index 100% rename from pkg/mimirpb/mimir_extra.proto rename to pkg/mimirpb/mimir_custom_types.proto diff --git a/pkg/ruler/ruler.pb.go b/pkg/ruler/ruler.pb.go index 73d87f439ec..4c510b2a5a2 100644 --- a/pkg/ruler/ruler.pb.go +++ b/pkg/ruler/ruler.pb.go @@ -10,8 +10,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "github.com/grafana/mimir/pkg/mimirpb" - github_com_grafana_mimir_pkg_mimirpb "github.com/grafana/mimir/pkg/mimirpb" + mimirpb "github.com/grafana/mimir/pkg/mimirpb" rulespb "github.com/grafana/mimir/pkg/ruler/rulespb" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -439,16 +438,16 @@ func (m *RuleStateDesc) GetEvaluationDuration() time.Duration { } type AlertStateDesc struct { - State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,2,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` - Annotations []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,3,rep,name=annotations,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"annotations"` - Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` - ActiveAt time.Time `protobuf:"bytes,5,opt,name=active_at,json=activeAt,proto3,stdtime" json:"active_at"` - FiredAt time.Time `protobuf:"bytes,6,opt,name=fired_at,json=firedAt,proto3,stdtime" json:"fired_at"` - ResolvedAt time.Time `protobuf:"bytes,7,opt,name=resolved_at,json=resolvedAt,proto3,stdtime" json:"resolved_at"` - LastSentAt time.Time `protobuf:"bytes,8,opt,name=last_sent_at,json=lastSentAt,proto3,stdtime" json:"last_sent_at"` - ValidUntil time.Time `protobuf:"bytes,9,opt,name=valid_until,json=validUntil,proto3,stdtime" json:"valid_until"` - KeepFiringSince time.Time `protobuf:"bytes,10,opt,name=keep_firing_since,json=keepFiringSince,proto3,stdtime" json:"keep_firing_since"` + State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels"` + Annotations []mimirpb.LabelAdapter `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations"` + Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` + ActiveAt time.Time `protobuf:"bytes,5,opt,name=active_at,json=activeAt,proto3,stdtime" json:"active_at"` + FiredAt time.Time `protobuf:"bytes,6,opt,name=fired_at,json=firedAt,proto3,stdtime" json:"fired_at"` + ResolvedAt time.Time `protobuf:"bytes,7,opt,name=resolved_at,json=resolvedAt,proto3,stdtime" json:"resolved_at"` + LastSentAt time.Time `protobuf:"bytes,8,opt,name=last_sent_at,json=lastSentAt,proto3,stdtime" json:"last_sent_at"` + ValidUntil time.Time `protobuf:"bytes,9,opt,name=valid_until,json=validUntil,proto3,stdtime" json:"valid_until"` + KeepFiringSince time.Time `protobuf:"bytes,10,opt,name=keep_firing_since,json=keepFiringSince,proto3,stdtime" json:"keep_firing_since"` } func (m *AlertStateDesc) Reset() { *m = AlertStateDesc{} } @@ -490,6 +489,20 @@ func (m *AlertStateDesc) GetState() string { return "" } +func (m *AlertStateDesc) GetLabels() []mimirpb.LabelAdapter { + if m != nil { + return m.Labels + } + return nil +} + +func (m *AlertStateDesc) GetAnnotations() []mimirpb.LabelAdapter { + if m != nil { + return m.Annotations + } + return nil +} + func (m *AlertStateDesc) GetValue() float64 { if m != nil { return m.Value @@ -553,65 +566,65 @@ func init() { func init() { proto.RegisterFile("ruler.proto", fileDescriptor_9ecbec0a4cfddea6) } var fileDescriptor_9ecbec0a4cfddea6 = []byte{ - // 924 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 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9, 0xb4, 0x08, 0x00, 0x00, + // 925 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xdf, 0x75, 0xfc, 0x6f, 0x9f, 0x93, 0x34, 0x99, 0x84, 0xb2, 0x0d, 0x65, 0x63, 0x19, 0x21, + 0x59, 0x48, 0xd9, 0xa0, 0x10, 0xc1, 0x05, 0x0a, 0x8e, 0xda, 0x22, 0x24, 0x84, 0xd0, 0x3a, 0x70, + 0x5d, 0x8d, 0xd7, 0xe3, 0xcd, 0x2a, 0xfb, 0x8f, 0x99, 0xd9, 0xc8, 0x39, 0xc1, 0x47, 0xe8, 0x91, + 0x33, 0x27, 0xbe, 0x01, 0x5f, 0xa1, 0xc7, 0x1c, 0x7b, 0x40, 0x85, 0x38, 0x17, 0x8e, 0xfd, 0x08, + 0x68, 0xde, 0xec, 0xc6, 0x4e, 0x1b, 0xa0, 0x16, 0xea, 0x25, 0xde, 0xf7, 0xde, 0xef, 0xf7, 0x9b, + 0x37, 0xbf, 0x79, 0x33, 0x81, 0x0e, 0x2f, 0x62, 0xc6, 0xdd, 0x9c, 0x67, 0x32, 0x23, 0x0d, 0x0c, + 0x76, 0xf6, 0xc2, 0x48, 0x9e, 0x14, 0x23, 0x37, 0xc8, 0x92, 0xfd, 0x30, 0x0b, 0xb3, 0x7d, 0xac, + 0x8e, 0x8a, 0x09, 0x46, 0x18, 0xe0, 0x97, 0x66, 0xed, 0x38, 0x61, 0x96, 0x85, 0x31, 0x9b, 0xa3, + 0xc6, 0x05, 0xa7, 0x32, 0xca, 0xd2, 0xb2, 0xbe, 0xfb, 0x72, 0x5d, 0x46, 0x09, 0x13, 0x92, 0x26, + 0x79, 0x09, 0xf8, 0x70, 0x71, 0x3d, 0x4e, 0x27, 0x34, 0xa5, 0xfb, 0x49, 0x94, 0x44, 0x7c, 0x3f, + 0x3f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0xe5, 0x18, 0xa3, 0x26, 0xee, 0xf2, 0xa3, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x31, 0x07, 0xc0, 0x69, 0x8f, 0x08, 0x00, 0x00, } func (x RulesRequest_RuleType) String() string { @@ -868,7 +881,7 @@ func (this *AlertStateDesc) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -876,7 +889,7 @@ func (this *AlertStateDesc) Equal(that interface{}) bool { return false } for i := range this.Annotations { - if !this.Annotations[i].Equal(that1.Annotations[i]) { + if !this.Annotations[i].Equal(&that1.Annotations[i]) { return false } } @@ -994,8 +1007,20 @@ func (this *AlertStateDesc) GoString() string { s := make([]string, 0, 14) s = append(s, "&ruler.AlertStateDesc{") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") - s = append(s, "Annotations: "+fmt.Sprintf("%#v", this.Annotations)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } + if this.Annotations != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Annotations)) + for i := range vs { + vs[i] = &this.Annotations[i] + } + s = append(s, "Annotations: "+fmt.Sprintf("%#v", vs)+",\n") + } s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") s = append(s, "ActiveAt: "+fmt.Sprintf("%#v", this.ActiveAt)+",\n") s = append(s, "FiredAt: "+fmt.Sprintf("%#v", this.FiredAt)+",\n") @@ -1532,11 +1557,11 @@ func (m *AlertStateDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Annotations) > 0 { for iNdEx := len(m.Annotations) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Annotations[iNdEx].Size() - i -= size - if _, err := m.Annotations[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Annotations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintRuler(dAtA, i, uint64(size)) } i-- @@ -1546,11 +1571,11 @@ func (m *AlertStateDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintRuler(dAtA, i, uint64(size)) } i-- @@ -1854,10 +1879,20 @@ func (this *AlertStateDesc) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" + repeatedStringForAnnotations := "[]LabelAdapter{" + for _, f := range this.Annotations { + repeatedStringForAnnotations += fmt.Sprintf("%v", f) + "," + } + repeatedStringForAnnotations += "}" s := strings.Join([]string{`&AlertStateDesc{`, `State:` + fmt.Sprintf("%v", this.State) + `,`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, - `Annotations:` + fmt.Sprintf("%v", this.Annotations) + `,`, + `Labels:` + repeatedStringForLabels + `,`, + `Annotations:` + repeatedStringForAnnotations + `,`, `Value:` + fmt.Sprintf("%v", this.Value) + `,`, `ActiveAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ActiveAt), "Timestamp", "timestamppb.Timestamp", 1), `&`, ``, 1) + `,`, `FiredAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FiredAt), "Timestamp", "timestamppb.Timestamp", 1), `&`, ``, 1) + `,`, @@ -2905,7 +2940,7 @@ func (m *AlertStateDesc) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2939,7 +2974,7 @@ func (m *AlertStateDesc) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Annotations = append(m.Annotations, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Annotations = append(m.Annotations, mimirpb.LabelAdapter{}) if err := m.Annotations[len(m.Annotations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/pkg/ruler/ruler.proto b/pkg/ruler/ruler.proto index 0777b1f7250..9f876d84891 100644 --- a/pkg/ruler/ruler.proto +++ b/pkg/ruler/ruler.proto @@ -13,6 +13,7 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "github.com/grafana/mimir/pkg/mimirpb/mimir.proto"; +import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto"; import "github.com/grafana/mimir/pkg/ruler/rulespb/rules.proto"; @@ -76,14 +77,8 @@ message RuleStateDesc { message AlertStateDesc { string state = 1; - repeated cortexpb.LabelPair labels = 2 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" - ]; - repeated cortexpb.LabelPair annotations = 3 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" - ]; + repeated cortexpb.LabelAdapter labels = 2 [(gogoproto.nullable) = false]; + repeated cortexpb.LabelAdapter annotations = 3 [(gogoproto.nullable) = false]; double value = 4; google.protobuf.Timestamp active_at = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; diff --git a/pkg/ruler/rulespb/rules.pb.go b/pkg/ruler/rulespb/rules.pb.go index f5f5a11dbf7..15bb09ca513 100644 --- a/pkg/ruler/rulespb/rules.pb.go +++ b/pkg/ruler/rulespb/rules.pb.go @@ -9,8 +9,7 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" types "github.com/gogo/protobuf/types" - _ "github.com/grafana/mimir/pkg/mimirpb" - github_com_grafana_mimir_pkg_mimirpb "github.com/grafana/mimir/pkg/mimirpb" + mimirpb "github.com/grafana/mimir/pkg/mimirpb" _ "google.golang.org/protobuf/types/known/durationpb" io "io" math "math" @@ -155,13 +154,13 @@ func (m *RuleGroupDesc) GetAlignEvaluationTimeOnInterval() bool { // RuleDesc is a proto representation of a Prometheus Rule type RuleDesc struct { - Expr string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` - Record string `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` - Alert string `protobuf:"bytes,3,opt,name=alert,proto3" json:"alert,omitempty"` - For time.Duration `protobuf:"bytes,4,opt,name=for,proto3,stdduration" json:"for"` - KeepFiringFor time.Duration `protobuf:"bytes,13,opt,name=keep_firing_for,json=keepFiringFor,proto3,stdduration" json:"keep_firing_for"` - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,5,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` - Annotations []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,6,rep,name=annotations,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"annotations"` + Expr string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` + Record string `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` + Alert string `protobuf:"bytes,3,opt,name=alert,proto3" json:"alert,omitempty"` + For time.Duration `protobuf:"bytes,4,opt,name=for,proto3,stdduration" json:"for"` + KeepFiringFor time.Duration `protobuf:"bytes,13,opt,name=keep_firing_for,json=keepFiringFor,proto3,stdduration" json:"keep_firing_for"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels"` + Annotations []mimirpb.LabelAdapter `protobuf:"bytes,6,rep,name=annotations,proto3" json:"annotations"` } func (m *RuleDesc) Reset() { *m = RuleDesc{} } @@ -231,6 +230,20 @@ func (m *RuleDesc) GetKeepFiringFor() time.Duration { return 0 } +func (m *RuleDesc) GetLabels() []mimirpb.LabelAdapter { + if m != nil { + return m.Labels + } + return nil +} + +func (m *RuleDesc) GetAnnotations() []mimirpb.LabelAdapter { + if m != nil { + return m.Annotations + } + return nil +} + func init() { proto.RegisterType((*RuleGroupDesc)(nil), "rules.RuleGroupDesc") proto.RegisterType((*RuleDesc)(nil), "rules.RuleDesc") @@ -239,45 +252,45 @@ func init() { func init() { proto.RegisterFile("rules.proto", fileDescriptor_8e722d3e922f0937) } var fileDescriptor_8e722d3e922f0937 = []byte{ - // 608 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xb6, 0x89, 0x93, 0x3a, 0x17, 0xa2, 0x56, 0x47, 0x85, 0xdc, 0x0a, 0xae, 0xa1, 0x02, 0x29, - 0x0b, 0x0e, 0x14, 0x31, 0x30, 0x20, 0xd4, 0xaa, 0x2d, 0x50, 0x40, 0x45, 0x56, 0x27, 0x96, 0xe8, - 0x9c, 0x3e, 0x1b, 0xab, 0xce, 0xdd, 0x71, 0xb6, 0xab, 0x66, 0x63, 0x61, 0x67, 0xe4, 0x27, 0x30, - 0xf2, 0x33, 0x3a, 0x76, 0xac, 0x18, 0x0a, 0x75, 0x17, 0xc6, 0xfe, 0x04, 0x74, 0x77, 0x4e, 0x1b, - 0xca, 0x12, 0x06, 0xa6, 0x7b, 0xef, 0xde, 0xfb, 0xde, 0xfb, 0xee, 0x7b, 0xef, 0x50, 0x4b, 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xfd, 0x28, 0x91, 0x09, 0x8b, - 0xfb, 0xaa, 0xc4, 0x3f, 0x88, 0xd5, 0x56, 0xd8, 0x4d, 0x0d, 0xdd, 0xe4, 0x12, 0x47, 0xa8, 0x91, - 0xd2, 0x10, 0xd2, 0xcc, 0xab, 0xeb, 0xcd, 0xb8, 0xe1, 0x0f, 0xb8, 0xcc, 0xe1, 0x40, 0x84, 0xfe, - 0x6b, 0x75, 0xff, 0x96, 0x26, 0x72, 0xed, 0x89, 0x42, 0x7f, 0x3f, 0x59, 0x7a, 0x38, 0xcd, 0xcf, - 0x31, 0xb8, 0xd5, 0x5d, 0x2a, 0x72, 0x90, 0x41, 0x55, 0x1d, 0x0b, 0xd4, 0xa2, 0x8c, 0xf1, 0x9c, - 0x9a, 0x35, 0x6c, 0xfc, 0x97, 0x66, 0x93, 0x2d, 0xf4, 0xe0, 0xda, 0x6b, 0x4f, 0x8f, 0x4e, 0x89, - 0x75, 0x7c, 0x4a, 0xac, 0xf3, 0x53, 0x62, 0x7f, 0x2c, 0x89, 0xfd, 0xb5, 0x24, 0xf6, 0x61, 0x49, - 0xec, 0xa3, 0x92, 0xd8, 0x3f, 0x4b, 0x62, 0xff, 0x2a, 0x89, 0x75, 0x5e, 0x12, 0xfb, 0xf3, 0x19, - 0xb1, 0x8e, 0xce, 0x88, 0x75, 0x7c, 0x46, 0xac, 0x77, 0x33, 0xfa, 0x2f, 0x89, 0x30, 0x6c, 0x68, - 0x29, 0x1f, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x3e, 0xea, 0x89, 0xb2, 0x04, 0x00, 0x00, + // 604 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4f, 0x4f, 0xd4, 0x40, + 0x14, 0x6f, 0xd9, 0xee, 0xd2, 0x9d, 0x75, 0x03, 0x99, 0x10, 0x52, 0x88, 0x0e, 0x2b, 0xd1,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0x41, 0x8c, 0xf7, 0xb3, 0xfa, 0xce, 0xf3, 0x20, 0xe8, 0xe8, 0x31, 0x9f, 0xfc, 0x09, + 0x00, 0x00, 0xff, 0xff, 0x25, 0xfa, 0xaa, 0x7e, 0x8d, 0x04, 0x00, 0x00, } func (this *RuleGroupDesc) Equal(that interface{}) bool { @@ -384,7 +397,7 @@ func (this *RuleDesc) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -392,7 +405,7 @@ func (this *RuleDesc) Equal(that interface{}) bool { return false } for i := range this.Annotations { - if !this.Annotations[i].Equal(that1.Annotations[i]) { + if !this.Annotations[i].Equal(&that1.Annotations[i]) { return false } } @@ -432,8 +445,20 @@ func (this *RuleDesc) GoString() string { s = append(s, "Alert: "+fmt.Sprintf("%#v", this.Alert)+",\n") s = append(s, "For: "+fmt.Sprintf("%#v", this.For)+",\n") s = append(s, "KeepFiringFor: "+fmt.Sprintf("%#v", this.KeepFiringFor)+",\n") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") - s = append(s, "Annotations: "+fmt.Sprintf("%#v", this.Annotations)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } + if this.Annotations != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Annotations)) + for i := range vs { + vs[i] = &this.Annotations[i] + } + s = append(s, "Annotations: "+fmt.Sprintf("%#v", vs)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -591,11 +616,11 @@ func (m *RuleDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Annotations) > 0 { for iNdEx := len(m.Annotations) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Annotations[iNdEx].Size() - i -= size - if _, err := m.Annotations[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Annotations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintRules(dAtA, i, uint64(size)) } i-- @@ -605,11 +630,11 @@ func (m *RuleDesc) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintRules(dAtA, i, uint64(size)) } i-- @@ -783,13 +808,23 @@ func (this *RuleDesc) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" + repeatedStringForAnnotations := "[]LabelAdapter{" + for _, f := range this.Annotations { + repeatedStringForAnnotations += fmt.Sprintf("%v", f) + "," + } + repeatedStringForAnnotations += "}" s := strings.Join([]string{`&RuleDesc{`, `Expr:` + fmt.Sprintf("%v", this.Expr) + `,`, `Record:` + fmt.Sprintf("%v", this.Record) + `,`, `Alert:` + fmt.Sprintf("%v", this.Alert) + `,`, `For:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.For), "Duration", "durationpb.Duration", 1), `&`, ``, 1) + `,`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, - `Annotations:` + fmt.Sprintf("%v", this.Annotations) + `,`, + `Labels:` + repeatedStringForLabels + `,`, + `Annotations:` + repeatedStringForAnnotations + `,`, `KeepFiringFor:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.KeepFiringFor), "Duration", "durationpb.Duration", 1), `&`, ``, 1) + `,`, `}`, }, "") @@ -1358,7 +1393,7 @@ func (m *RuleDesc) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -1392,7 +1427,7 @@ func (m *RuleDesc) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Annotations = append(m.Annotations, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Annotations = append(m.Annotations, mimirpb.LabelAdapter{}) if err := m.Annotations[len(m.Annotations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/pkg/ruler/rulespb/rules.proto b/pkg/ruler/rulespb/rules.proto index 0bcdfd05e56..583121bfb1f 100644 --- a/pkg/ruler/rulespb/rules.proto +++ b/pkg/ruler/rulespb/rules.proto @@ -13,6 +13,7 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/any.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; @@ -47,12 +48,6 @@ message RuleDesc { string alert = 3; 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.LabelPair labels = 5 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" - ]; - repeated cortexpb.LabelPair annotations = 6 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" - ]; + repeated cortexpb.LabelAdapter labels = 5 [(gogoproto.nullable) = false]; + repeated cortexpb.LabelAdapter annotations = 6 [(gogoproto.nullable) = false]; } diff --git a/pkg/storegateway/storepb/cache.pb.go b/pkg/storegateway/storepb/cache.pb.go index 5e8a1298335..c705a138589 100644 --- a/pkg/storegateway/storepb/cache.pb.go +++ b/pkg/storegateway/storepb/cache.pb.go @@ -72,26 +72,27 @@ func init() { func init() { proto.RegisterFile("cache.proto", fileDescriptor_5fca3b110c9bbf3a) } var fileDescriptor_5fca3b110c9bbf3a = []byte{ - // 303 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4f, 0x02, 0x31, - 0x1c, 0xc5, 0x5b, 0x39, 0x90, 0x1c, 0x0c, 0x17, 0x5c, 0x08, 0xc3, 0x1f, 0xe2, 0xc4, 0xe2, 0x1d, - 0xd1, 0xc5, 0x51, 0x31, 0x2e, 0x24, 0x26, 0x04, 0x37, 0xb7, 0xb6, 0xd7, 0x3b, 0xaa, 0x70, 0xbd, - 0xb4, 0x25, 0x71, 0xf4, 0x23, 0xf8, 0x31, 0xfc, 0x14, 0xce, 0x8c, 0x8c, 0xc4, 0x81, 0x78, 0xbd, - 0xc5, 0x91, 0x8f, 0x60, 0xe8, 0x39, 0x38, 0x38, 0x38, 0xf5, 0xbd, 0xbc, 0xf7, 0xfa, 0x4b, 0xfe, - 0x7e, 0x8b, 0x11, 0x36, 0xe7, 0x61, 0xae, 0xa4, 0x91, 0x9d, 0x86, 0x99, 0x93, 0x4c, 0xea, 0xde, - 0x59, 0x2a, 0xcc, 0x7c, 0x45, 0x43, 0x26, 0x97, 0x51, 0x2a, 0x53, 0x19, 0xb9, 0x98, 0xae, 0x12, - 0xe7, 0x9c, 0x71, 0xaa, 0x9a, 0xf5, 0x46, 0xbf, 0xeb, 0x8a, 0x24, 0x24, 0x23, 0xd1, 0x52, 0x2c, - 0x85, 0x8a, 0xf2, 0xa7, 0xb4, 0x52, 0x39, 0xad, 0xde, 0x6a, 0x71, 0xfa, 0x8e, 0xfd, 0xf6, 0xcd, - 0x01, 0x1c, 0xdf, 0x73, 0x25, 0xb8, 0xee, 0x3c, 0xfa, 0x0d, 0xed, 0x54, 0x17, 0x0f, 0x6a, 0xc3, - 0xd6, 0x79, 0x10, 0x32, 0xa9, 0x0c, 0x7f, 0xce, 0x69, 0x78, 0xc7, 0x8d, 0x12, 0x6c, 0x7c, 0xb5, - 0xde, 0xf5, 0xd1, 0xc7, 0xae, 0x7f, 0xf9, 0x1f, 0x58, 0x38, 0x55, 0x9c, 0x2c, 0x16, 0x92, 0x11, - 0x23, 0xb2, 0xb4, 0xfa, 0x61, 0xf6, 0x43, 0xe8, 0x8c, 0xfc, 0x93, 0x58, 0x24, 0xc9, 0x6d, 0xc6, - 0x64, 0xcc, 0xe3, 0xa9, 0xd4, 0x87, 0x8e, 0xee, 0xd6, 0x07, 0x78, 0xd8, 0x9e, 0xfd, 0x15, 0x4d, - 0xbc, 0xe6, 0x51, 0x50, 0x9b, 0x78, 0xcd, 0x5a, 0xe0, 0x4d, 0xbc, 0xa6, 0x17, 0xd4, 0xc7, 0xd7, - 0xeb, 0x02, 0xd0, 0xa6, 0x00, 0xb4, 0x2d, 0x00, 0xed, 0x0b, 0xc0, 0x2f, 0x16, 0xf0, 0x9b, 0x05, - 0xbc, 0xb6, 0x80, 0x37, 0x16, 0xf0, 0xa7, 0x05, 0xfc, 0x65, 0x01, 0xed, 0x2d, 0xe0, 0xd7, 0x12, - 0xd0, 0xa6, 0x04, 0xb4, 0x2d, 0x01, 0x3d, 0x1c, 0x6b, 0x23, 0x15, 0xcf, 0x29, 0x6d, 0xb8, 0x53, - 0x5c, 0x7c, 0x07, 0x00, 0x00, 0xff, 0xff, 0x86, 0x0e, 0x5e, 0xee, 0x82, 0x01, 0x00, 0x00, + // 320 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4f, 0xc2, 0x40, + 0x1c, 0xc5, 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, 0x64, 0xd9, 0x1d, 0x4b, 0x46, 0xe6, 0x73, 0x41, + 0x89, 0xe6, 0x49, 0x54, 0xde, 0x30, 0xd9, 0x2f, 0xb4, 0x06, 0xf6, 0x49, 0xc0, 0xc3, 0xf0, 0x2e, + 0xa1, 0x22, 0x60, 0xc1, 0x58, 0xa8, 0x5d, 0x47, 0xb5, 0xab, 0x3d, 0xdc, 0x6f, 0x4e, 0xfe, 0x8b, + 0x46, 0x56, 0xfd, 0xc8, 0xa9, 0x8c, 0xac, 0x7a, 0xc5, 0xb1, 0x46, 0x56, 0xdd, 0x72, 0xaa, 0xc3, + 0x9b, 0x65, 0x06, 0x68, 0x95, 0x01, 0x5a, 0x67, 0x80, 0xb6, 0x19, 0xe0, 0x37, 0x03, 0xf8, 0xc3, + 0x00, 0x5e, 0x1a, 0xc0, 0x2b, 0x03, 0xf8, 0xdb, 0x00, 0xfe, 0x31, 0x80, 0xb6, 0x06, 0xf0, 0x7b, + 0x0e, 0x68, 0x95, 0x03, 0x5a, 0xe7, 0x80, 0x1e, 0x8f, 0x95, 0x16, 0x92, 0xa5, 0xbe, 0x5f, 0x2b, + 0xbe, 0xe2, 0xe2, 0x37, 0x00, 0x00, 0xff, 0xff, 0x25, 0x03, 0x07, 0xf8, 0xc1, 0x01, 0x00, 0x00, } func (this *CachedSeries) Equal(that interface{}) bool { diff --git a/pkg/storegateway/storepb/cache.proto b/pkg/storegateway/storepb/cache.proto index eea39defb1a..5d4e2d5d59a 100644 --- a/pkg/storegateway/storepb/cache.proto +++ b/pkg/storegateway/storepb/cache.proto @@ -8,6 +8,7 @@ option go_package = "storepb"; 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.sizer_all) = true; option (gogoproto.marshaler_all) = true; diff --git a/pkg/storegateway/storepb/rpc.pb.go b/pkg/storegateway/storepb/rpc.pb.go index 763f925f01d..76daada1e0c 100644 --- a/pkg/storegateway/storepb/rpc.pb.go +++ b/pkg/storegateway/storepb/rpc.pb.go @@ -8,6 +8,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" + _ "github.com/grafana/mimir/pkg/mimirpb" io "io" math "math" math_bits "math/bits" @@ -449,54 +450,56 @@ func init() { func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) } var fileDescriptor_77a6da22d6a3feb1 = []byte{ - // 740 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x6e, 0x13, 0x3b, - 0x14, 0x86, 0xc7, 0x19, 0xcf, 0xc4, 0x71, 0x9a, 0xde, 0xe9, 0xb4, 0xba, 0x77, 0x9a, 0x7b, 0x35, - 0x8d, 0x22, 0x5d, 0x29, 0x42, 0x90, 0x4a, 0x45, 0x82, 0x15, 0x8b, 0x06, 0x21, 0xa5, 0x23, 0x60, - 0xe1, 0x22, 0x16, 0x48, 0x28, 0x9a, 0x24, 0x6e, 0x62, 0x35, 0xe3, 0x09, 0x63, 0x07, 0x9a, 0xae, - 0x78, 0x04, 0x1e, 0x03, 0xc1, 0x13, 0xb0, 0x65, 0xd5, 0x65, 0x97, 0x5d, 0x21, 0x92, 0x6e, 0x58, - 0xf6, 0x11, 0xd0, 0x78, 0x9c, 0xa4, 0x11, 0xad, 0x4a, 0x25, 0x76, 0x3e, 0xff, 0x7f, 0x7c, 0x7c, - 0xfc, 0xf9, 0x18, 0x17, 0x92, 0x61, 0xa7, 0x3e, 0x4c, 0x62, 0x19, 0xbb, 0xb6, 0xec, 0x87, 0x3c, - 0x16, 0xe5, 0xa2, 0x1c, 0x0f, 0xa9, 0xc8, 0xc4, 0xf2, 0xbd, 0x1e, 0x93, 0xfd, 0x51, 0xbb, 0xde, - 0x89, 0xa3, 0xed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x6c, 0xe2, 0x1b, 0x17, 0x13, 0x1f, 0xbc, 0x9f, 0xfa, 0xe0, 0xe3, 0xd4, 0x07, 0x27, - 0x53, 0x1f, 0x9c, 0x4e, 0x7d, 0xf0, 0x7d, 0xea, 0x83, 0x1f, 0x53, 0xdf, 0xb8, 0x98, 0xfa, 0xe0, - 0xc3, 0xb9, 0x6f, 0x9c, 0x9e, 0xfb, 0xc6, 0xd9, 0xb9, 0x6f, 0xbc, 0xca, 0x0b, 0x19, 0x27, 0x74, - 0xd8, 0x6e, 0xdb, 0xaa, 0xee, 0xfd, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xb6, 0x7d, 0x6f, - 0x35, 0x06, 0x00, 0x00, + // 772 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x4d, 0x6b, 0xe3, 0x46, + 0x18, 0xc7, 0x35, 0xd6, 0x48, 0x1e, 0x8f, 0xe3, 0x54, 0x51, 0x42, 0xab, 0xb8, 0x45, 0x31, 0x86, + 0x82, 0x29, 0xad, 0x0d, 0x29, 0xb4, 0xa7, 0x1c, 0xe2, 0x52, 0x70, 0x44, 0xdb, 0x83, 0x52, 0x7a, + 0x28, 0x14, 0x21, 0xd9, 0x13, 0x79, 0x88, 0xf5, 0x52, 0xcd, 0xa8, 0x8d, 0x73, 0xda, 0x8f, 0xb0, + 0x1f, 0x63, 0xd9, 0xfd, 0x04, 0x7b, 0xdd, 0x53, 0x8e, 0x39, 0xe6, 0xb4, 0xac, 0x9d, 0xcb, 0x1e, + 0xf3, 0x11, 0x16, 0x8d, 0xc6, 0x6f, 0x6c, 0x42, 0x36, 0xb0, 0x27, 0xe9, 0xf9, 0xff, 0x9f, 0x79, + 0xe6, 0x99, 0xdf, 0x3c, 0x83, 0x6b, 0x59, 0x3a, 0xec, 0xa6, 0x59, 0xc2, 0x13, 0x53, 0xe7, 0x63, + 0x3f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x44, 0xd5, 0xf2, 0x2c, 0xdd, 0xc5, 0x59, 0xba, 0xc7, 0xf1, + 0xd4, 0x2d, 0x53, 0xcc, 0x23, 0xfc, 0x35, 0xe3, 0x19, 0xf1, 0x23, 0x1a, 0x87, 0xb2, 0xa2, 0x17, + 0x14, 0x3b, 0x79, 0x8c, 0x5e, 0x12, 0x6b, 0xd4, 0x02, 0x1d, 0xe8, 0x5a, 0xcb, 0x94, 0x72, 0x87, + 0x7e, 0x91, 0x70, 0x4a, 0x2f, 0x89, 0x03, 0x11, 0x34, 0x34, 0x07, 0x22, 0xcd, 0xd0, 0x1d, 0x88, + 0x74, 0xa3, 0xea, 0x40, 0x54, 0x35, 0x90, 0x03, 0x11, 0x36, 0xea, 0x0e, 0x44, 0x75, 0x63, 0xcb, + 0x81, 0x68, 0xcb, 0x68, 0x38, 0x10, 0x35, 0x8c, 0xed, 0xf6, 0xcf, 0x58, 0x3b, 0xe5, 0x3e, 0x67, + 0x66, 0x17, 0xef, 0x9e, 0x91, 0xe2, 0x40, 0x23, 0x8f, 0xc6, 0x23, 0x72, 0xe1, 0x05, 0x53, 0x4e, + 0x98, 0xa0, 0x07, 0xdd, 0x1d, 0x69, 0x9d, 0x14, 0x4e, 0xbf, 0x30, 0xda, 0x2f, 0x55, 0xbc, 0xbd, + 0x80, 0xce, 0xd2, 0x24, 0x66, 0xc4, 0xec, 0x60, 0x9d, 0x09, 0x45, 0xac, 0xaa, 0x1f, 0x6e, 0x2f, + 0xe8, 0x95, 0x79, 0x03, 0xc5, 0x95, 0xbe, 0xd9, 0xc4, 0xd5, 0xff, 0xfd, 0x2c, 0xa6, 0x71, 0x28, + 0xee, 0xa0, 0x36, 0x50, 0xdc, 0x85, 0x60, 0x7e, 0xbf, 0x80, 0xa5, 0x3e, 0x0c, 0x6b, 0xa0, 0x2c, + 0x70, 0x7d, 0x8b, 0x35, 0x56, 0xf4, 0x6f, 0x41, 0x91, 0xdd, 0x58, 0x6e, 0x59, 0x88, 0x45, 0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, 0xe0, 0xb4, 0x7b, 0xc0, 0xe9, 0x4f, 0x03, 0x57, 0x7d, 0x12, 0xb8, + 0x8a, 0xa1, 0x3a, 0x10, 0xa9, 0x06, 0x6c, 0xe7, 0x78, 0x77, 0xe3, 0x0c, 0x92, 0xdc, 0x97, 0x58, + 0xff, 0x4f, 0x28, 0x12, 0x9d, 0x8c, 0x3e, 0x17, 0xbb, 0xfe, 0xf1, 0xd5, 0xcc, 0x56, 0xae, 0x67, + 0xb6, 0x72, 0x33, 0xb3, 0x95, 0xbb, 0x99, 0x0d, 0x9e, 0xcd, 0x6d, 0xf0, 0x62, 0x6e, 0x83, 0xab, + 0xb9, 0x0d, 0xae, 0xe7, 0x36, 0x78, 0x37, 0xb7, 0xc1, 0xfb, 0xb9, 0xad, 0xdc, 0xcd, 0x6d, 0xf0, + 0xfc, 0xd6, 0x56, 0xae, 0x6f, 0x6d, 0xe5, 0xe6, 0xd6, 0x56, 0xfe, 0xae, 0x32, 0x9e, 0x64, 0x24, + 0x0d, 0x02, 0x5d, 0xd4, 0xfd, 0xf1, 0x43, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x15, 0xfd, 0x47, + 0x74, 0x06, 0x00, 0x00, } func (this *SeriesRequest) Equal(that interface{}) bool { diff --git a/pkg/storegateway/storepb/rpc.proto b/pkg/storegateway/storepb/rpc.proto index e8a4404fc7b..155bb2a5f09 100644 --- a/pkg/storegateway/storepb/rpc.proto +++ b/pkg/storegateway/storepb/rpc.proto @@ -7,6 +7,7 @@ syntax = "proto3"; package thanos; import "types.proto"; +import "github.com/grafana/mimir/pkg/mimirpb/mimir_custom_types.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; import "google/protobuf/any.proto"; diff --git a/pkg/storegateway/storepb/types.pb.go b/pkg/storegateway/storepb/types.pb.go index 59b78b88a11..a4660f4641a 100644 --- a/pkg/storegateway/storepb/types.pb.go +++ b/pkg/storegateway/storepb/types.pb.go @@ -7,8 +7,8 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - _ "github.com/grafana/mimir/pkg/mimirpb" github_com_grafana_mimir_pkg_mimirpb "github.com/grafana/mimir/pkg/mimirpb" + mimirpb "github.com/grafana/mimir/pkg/mimirpb" io "io" math "math" math_bits "math/bits" @@ -117,8 +117,8 @@ func (m *Chunk) XXX_DiscardUnknown() { var xxx_messageInfo_Chunk proto.InternalMessageInfo type Series struct { - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` - Chunks []AggrChunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` + Chunks []AggrChunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks"` } func (m *Series) Reset() { *m = Series{} } @@ -154,7 +154,7 @@ func (m *Series) XXX_DiscardUnknown() { var xxx_messageInfo_Series proto.InternalMessageInfo type StreamingSeries struct { - Labels []github_com_grafana_mimir_pkg_mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3,customtype=github.com/grafana/mimir/pkg/mimirpb.LabelAdapter" json:"labels"` + Labels []mimirpb.LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` } func (m *StreamingSeries) Reset() { *m = StreamingSeries{} } @@ -429,52 +429,52 @@ func init() { func init() { proto.RegisterFile("types.proto", fileDescriptor_d938547f84707355) } var fileDescriptor_d938547f84707355 = []byte{ - // 715 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, - 0x14, 0xf5, 0x24, 0x4e, 0xe2, 0x4c, 0xda, 0x57, 0xbf, 0x49, 0xde, 0x6b, 0xda, 0x85, 0x1b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d, 0x8e, 0x43, 0x92, 0xfc, 0x01, 0x10, 0x54, 0x7d, 0x9c, 0x78, 0xcb, - 0xdb, 0xe2, 0x8c, 0x4a, 0x30, 0xf3, 0x16, 0x0f, 0x86, 0x44, 0x58, 0xcb, 0xdb, 0x32, 0x30, 0xdf, - 0x40, 0x35, 0xae, 0x8b, 0x9f, 0xf1, 0x7c, 0x33, 0xa7, 0xb9, 0xaf, 0x2b, 0xa8, 0x04, 0xf5, 0x2b, - 0xc9, 0x17, 0xcd, 0x7d, 0x1d, 0xdc, 0xa0, 0xda, 0x4d, 0x3d, 0x75, 0x93, 0x6a, 0x37, 0xf5, 0x74, - 0x63, 0xf3, 0x78, 0x62, 0x28, 0x27, 0x13, 0x43, 0x39, 0x9d, 0x18, 0xca, 0xc5, 0xc4, 0x00, 0x1f, - 0xa6, 0x06, 0xf8, 0x32, 0x35, 0xc0, 0xf1, 0xd4, 0x00, 0x27, 0x53, 0x03, 0xfc, 0x98, 0x1a, 0xe0, - 0xe7, 0xd4, 0x50, 0x2e, 0xa6, 0x06, 0xf8, 0x74, 0x6e, 0x28, 0x27, 0xe7, 0x86, 0x72, 0x7a, 0x6e, - 0x28, 0xaf, 0x73, 0x8c, 0x07, 0x11, 0x09, 0xdb, 0xed, 0xac, 0xf8, 0x13, 0x3e, 0xfc, 0x15, 0x00, - 0x00, 0xff, 0xff, 0x58, 0xdc, 0x9c, 0x04, 0x81, 0x05, 0x00, 0x00, + // 709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, + 0x14, 0xf5, 0x24, 0x4e, 0xe2, 0x4c, 0xda, 0x57, 0xbf, 0x69, 0x5e, 0x9b, 0x76, 0xe1, 0xe6, 0x59, + 0x42, 0x8a, 0x90, 0xea, 0xa0, 0xd0, 0x25, 0x2c, 0x9a, 0x2a, 0x50, 0x22, 0x4a, 0xa9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0x0e, 0x31, 0x27, 0x43, + 0xff, 0xc3, 0x85, 0x54, 0x4e, 0x83, 0x2e, 0x19, 0x89, 0xb7, 0xa1, 0xda, 0x25, 0x99, 0x7b, 0x96, + 0xa4, 0xfe, 0xe4, 0xba, 0xca, 0x73, 0x6d, 0xee, 0x3a, 0xa5, 0x64, 0x4f, 0xa7, 0x34, 0xf7, 0xe0, + 0xea, 0x1c, 0xd4, 0x62, 0x9c, 0xfa, 0x98, 0x13, 0xd4, 0x80, 0xff, 0x91, 0xf4, 0xdc, 0x75, 0x44, + 0x5f, 0xc7, 0x0d, 0x87, 0x01, 0x4f, 0x07, 0x58, 0xbe, 0x06, 0x85, 0x6e, 0x27, 0x81, 0xcc, 0x4f, + 0x00, 0x16, 0xaf, 0x3d, 0xa3, 0x35, 0xa8, 0xf9, 0x34, 0x70, 0x38, 0xf5, 0xe5, 0x46, 0x64, 0xed, + 0x82, 0x4f, 0x83, 0x23, 0xea, 0x13, 0x01, 0xe1, 0x91, 0x84, 0x32, 0x29, 0x84, 0x47, 0x02, 0xba, + 0x07, 0xb3, 0x31, 0x7e, 0x5f, 0xc9, 0x56, 0x41, 0xad, 0xd4, 0x58, 0xbc, 0xb1, 0x42, 0xe9, 0x2d, + 0x24, 0x78, 0x5b, 0xd5, 0x54, 0x3d, 0xd7, 0x56, 0xb5, 0x9c, 0x9e, 0x6f, 0xab, 0x5a, 0x5e, 0x2f, + 0xb4, 0x55, 0xad, 0xa0, 0x6b, 0x6d, 0x55, 0xd3, 0xf4, 0xa2, 0xf9, 0x15, 0xc0, 0x05, 0xf1, 0x4a, + 0xf6, 0x92, 0x7b, 0x21, 0x31, 0xda, 0xbc, 0xb1, 0x99, 0x6b, 0xd3, 0xb2, 0xb3, 0x1c, 0xeb, 0xe8, + 0x24, 0x22, 0xe9, 0x72, 0x22, 0xa8, 0x06, 0x38, 0xf5, 0x56, 0xb4, 0xc5, 0x19, 0x95, 0x61, 0xee, + 0x1d, 0x1e, 0x0c, 0x89, 0xb0, 0x56, 0xb4, 0x65, 0x60, 0xbe, 0x85, 0x6a, 0xa2, 0x4b, 0x36, 0x6c, + 0xb6, 0x98, 0xd3, 0x3a, 0xd0, 0x15, 0x54, 0x86, 0xfa, 0x8d, 0xe4, 0x8b, 0xd6, 0x81, 0x0e, 0x6e, + 0x51, 0xed, 0x96, 0x9e, 0xb9, 0x4d, 0xb5, 0x5b, 0x7a, 0xb6, 0xb9, 0x7d, 0x3a, 0x36, 0x94, 0xb3, + 0xb1, 0xa1, 0x9c, 0x8f, 0x0d, 0xe5, 0x6a, 0x6c, 0x80, 0x8f, 0x13, 0x03, 0x7c, 0x99, 0x18, 0xe0, + 0x74, 0x62, 0x80, 0xb3, 0x89, 0x01, 0x7e, 0x4c, 0x0c, 0xf0, 0x73, 0x62, 0x28, 0x57, 0x13, 0x03, + 0x7c, 0xbe, 0x34, 0x94, 0xb3, 0x4b, 0x43, 0x39, 0xbf, 0x34, 0x94, 0x37, 0x05, 0xc6, 0xc3, 0x98, + 0x44, 0x9d, 0x4e, 0x5e, 0x7c, 0xa4, 0x1e, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x33, 0xc9, 0x37, + 0xb8, 0x5b, 0x05, 0x00, 0x00, } func (x Chunk_Encoding) String() string { @@ -541,7 +541,7 @@ func (this *Series) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -578,7 +578,7 @@ func (this *StreamingSeries) Equal(that interface{}) bool { return false } for i := range this.Labels { - if !this.Labels[i].Equal(that1.Labels[i]) { + if !this.Labels[i].Equal(&that1.Labels[i]) { return false } } @@ -778,7 +778,13 @@ func (this *Series) GoString() string { } s := make([]string, 0, 6) s = append(s, "&storepb.Series{") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } if this.Chunks != nil { vs := make([]*AggrChunk, len(this.Chunks)) for i := range vs { @@ -795,7 +801,13 @@ func (this *StreamingSeries) GoString() string { } s := make([]string, 0, 5) s = append(s, "&storepb.StreamingSeries{") - s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n") + if this.Labels != nil { + vs := make([]*mimirpb.LabelAdapter, len(this.Labels)) + for i := range vs { + vs[i] = &this.Labels[i] + } + s = append(s, "Labels: "+fmt.Sprintf("%#v", vs)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -958,11 +970,11 @@ func (m *Series) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- @@ -995,11 +1007,11 @@ func (m *StreamingSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { { - size := m.Labels[iNdEx].Size() - i -= size - if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil { + size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- @@ -1430,13 +1442,18 @@ func (this *Series) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" repeatedStringForChunks := "[]AggrChunk{" for _, f := range this.Chunks { repeatedStringForChunks += strings.Replace(strings.Replace(f.String(), "AggrChunk", "AggrChunk", 1), `&`, ``, 1) + "," } repeatedStringForChunks += "}" s := strings.Join([]string{`&Series{`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, + `Labels:` + repeatedStringForLabels + `,`, `Chunks:` + repeatedStringForChunks + `,`, `}`, }, "") @@ -1446,8 +1463,13 @@ func (this *StreamingSeries) String() string { if this == nil { return "nil" } + repeatedStringForLabels := "[]LabelAdapter{" + for _, f := range this.Labels { + repeatedStringForLabels += fmt.Sprintf("%v", f) + "," + } + repeatedStringForLabels += "}" s := strings.Join([]string{`&StreamingSeries{`, - `Labels:` + fmt.Sprintf("%v", this.Labels) + `,`, + `Labels:` + repeatedStringForLabels + `,`, `}`, }, "") return s @@ -1704,7 +1726,7 @@ func (m *Series) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -1825,7 +1847,7 @@ func (m *StreamingSeries) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Labels = append(m.Labels, github_com_grafana_mimir_pkg_mimirpb.LabelAdapter{}) + m.Labels = append(m.Labels, mimirpb.LabelAdapter{}) if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/pkg/storegateway/storepb/types.proto b/pkg/storegateway/storepb/types.proto index 0baeaf78d8a..f394538f676 100644 --- a/pkg/storegateway/storepb/types.proto +++ b/pkg/storegateway/storepb/types.proto @@ -10,6 +10,7 @@ option go_package = "storepb"; 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.sizer_all) = true; option (gogoproto.marshaler_all) = true; @@ -33,12 +34,12 @@ message Chunk { } message Series { - 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]; repeated AggrChunk chunks = 2 [(gogoproto.nullable) = false]; } message StreamingSeries { - 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]; } message StreamingSeriesBatch {