From 5190dda64b8e83013ab02b60845b1d9056154d68 Mon Sep 17 00:00:00 2001 From: Shantanu Alshi Date: Mon, 1 Apr 2024 18:30:21 +0530 Subject: [PATCH] feat(detected_labels): Initial skeleton for the API (#12390) Co-authored-by: Cyril Tovena --- pkg/loghttp/labels.go | 13 + pkg/logproto/logproto.pb.go | 1161 ++++++++++++++++++---- pkg/logproto/logproto.proto | 20 + pkg/logql/metrics.go | 4 + pkg/loki/modules.go | 1 + pkg/querier/handler.go | 7 + pkg/querier/http.go | 10 + pkg/querier/multi_tenant_querier.go | 22 + pkg/querier/querier.go | 11 + pkg/querier/querier_mock_test.go | 12 + pkg/querier/queryrange/codec.go | 123 ++- pkg/querier/queryrange/extensions.go | 17 + pkg/querier/queryrange/marshal.go | 10 + pkg/querier/queryrange/queryrange.pb.go | 753 ++++++++++++-- pkg/querier/queryrange/queryrange.proto | 10 + pkg/querier/queryrange/roundtrip.go | 12 +- pkg/querier/queryrange/roundtrip_test.go | 1 + pkg/querier/queryrange/stats.go | 3 + pkg/util/marshal/marshal.go | 10 + 19 files changed, 1908 insertions(+), 292 deletions(-) diff --git a/pkg/loghttp/labels.go b/pkg/loghttp/labels.go index f239873323cfe..efa059fc9709c 100644 --- a/pkg/loghttp/labels.go +++ b/pkg/loghttp/labels.go @@ -87,6 +87,19 @@ func ParseLabelQuery(r *http.Request) (*logproto.LabelRequest, error) { return req, nil } +func ParseDetectedLabelsQuery(r *http.Request) (*logproto.DetectedLabelsRequest, error) { + start, end, err := bounds(r) + if err != nil { + return nil, err + } + + return &logproto.DetectedLabelsRequest{ + Start: &start, + End: &end, + Query: query(r), + }, nil +} + func ParseDetectedFieldsQuery(r *http.Request) (*logproto.DetectedFieldsRequest, error) { req := &logproto.DetectedFieldsRequest{} diff --git a/pkg/logproto/logproto.pb.go b/pkg/logproto/logproto.pb.go index 2b794a5f899c2..11482676c0efb 100644 --- a/pkg/logproto/logproto.pb.go +++ b/pkg/logproto/logproto.pb.go @@ -2673,6 +2673,151 @@ func (m *DetectedField) GetCardinality() uint64 { return 0 } +type DetectedLabelsRequest struct { + Start *time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start,omitempty"` + End *time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end,omitempty"` + Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` +} + +func (m *DetectedLabelsRequest) Reset() { *m = DetectedLabelsRequest{} } +func (*DetectedLabelsRequest) ProtoMessage() {} +func (*DetectedLabelsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c28a5f14f1f4c79a, []int{48} +} +func (m *DetectedLabelsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DetectedLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DetectedLabelsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DetectedLabelsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectedLabelsRequest.Merge(m, src) +} +func (m *DetectedLabelsRequest) XXX_Size() int { + return m.Size() +} +func (m *DetectedLabelsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DetectedLabelsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectedLabelsRequest proto.InternalMessageInfo + +func (m *DetectedLabelsRequest) GetStart() *time.Time { + if m != nil { + return m.Start + } + return nil +} + +func (m *DetectedLabelsRequest) GetEnd() *time.Time { + if m != nil { + return m.End + } + return nil +} + +func (m *DetectedLabelsRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +type DetectedLabelsResponse struct { + DetectedLabels []*DetectedLabel `protobuf:"bytes,1,rep,name=detectedLabels,proto3" json:"detectedLabels,omitempty"` +} + +func (m *DetectedLabelsResponse) Reset() { *m = DetectedLabelsResponse{} } +func (*DetectedLabelsResponse) ProtoMessage() {} +func (*DetectedLabelsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c28a5f14f1f4c79a, []int{49} +} +func (m *DetectedLabelsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DetectedLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DetectedLabelsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DetectedLabelsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectedLabelsResponse.Merge(m, src) +} +func (m *DetectedLabelsResponse) XXX_Size() int { + return m.Size() +} +func (m *DetectedLabelsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DetectedLabelsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectedLabelsResponse proto.InternalMessageInfo + +func (m *DetectedLabelsResponse) GetDetectedLabels() []*DetectedLabel { + if m != nil { + return m.DetectedLabels + } + return nil +} + +type DetectedLabel struct { + Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` +} + +func (m *DetectedLabel) Reset() { *m = DetectedLabel{} } +func (*DetectedLabel) ProtoMessage() {} +func (*DetectedLabel) Descriptor() ([]byte, []int) { + return fileDescriptor_c28a5f14f1f4c79a, []int{50} +} +func (m *DetectedLabel) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DetectedLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DetectedLabel.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DetectedLabel) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectedLabel.Merge(m, src) +} +func (m *DetectedLabel) XXX_Size() int { + return m.Size() +} +func (m *DetectedLabel) XXX_DiscardUnknown() { + xxx_messageInfo_DetectedLabel.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectedLabel proto.InternalMessageInfo + +func (m *DetectedLabel) GetLabel() string { + if m != nil { + return m.Label + } + return "" +} + func init() { proto.RegisterEnum("logproto.Direction", Direction_name, Direction_value) proto.RegisterType((*StreamRatesRequest)(nil), "logproto.StreamRatesRequest") @@ -2724,162 +2869,167 @@ func init() { proto.RegisterType((*DetectedFieldsRequest)(nil), "logproto.DetectedFieldsRequest") proto.RegisterType((*DetectedFieldsResponse)(nil), "logproto.DetectedFieldsResponse") proto.RegisterType((*DetectedField)(nil), "logproto.DetectedField") + proto.RegisterType((*DetectedLabelsRequest)(nil), "logproto.DetectedLabelsRequest") + proto.RegisterType((*DetectedLabelsResponse)(nil), "logproto.DetectedLabelsResponse") + proto.RegisterType((*DetectedLabel)(nil), "logproto.DetectedLabel") } func init() { proto.RegisterFile("pkg/logproto/logproto.proto", fileDescriptor_c28a5f14f1f4c79a) } var fileDescriptor_c28a5f14f1f4c79a = []byte{ - // 2395 bytes of a gzipped FileDescriptorProto + // 2431 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x19, 0x4b, 0x6f, 0x1b, 0xc7, - 0x99, 0x4b, 0x2e, 0x5f, 0x1f, 0x29, 0x59, 0x1e, 0xd1, 0x36, 0xc1, 0xd8, 0xa4, 0x3c, 0x48, 0x1d, - 0xd5, 0x71, 0xc8, 0x58, 0x6e, 0xdc, 0xd4, 0x6e, 0xd0, 0x9a, 0x52, 0xec, 0xc8, 0x96, 0x1f, 0x19, - 0xb9, 0x6e, 0x60, 0xb4, 0x35, 0x56, 0xe4, 0x90, 0x5a, 0x88, 0xdc, 0xa5, 0x77, 0x87, 0xb1, 0x09, + 0x99, 0x4b, 0x2e, 0x5f, 0x1f, 0x29, 0x59, 0x1e, 0xd1, 0x32, 0xc1, 0xd8, 0xa4, 0x3c, 0x48, 0x1c, + 0xd5, 0x71,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d, 0x81, 0xeb, 0xf8, 0x14, 0x5d, 0x84, 0x82, 0x1f, 0x82, - 0xcb, 0xc6, 0x52, 0x6a, 0xb9, 0xb0, 0x52, 0xaa, 0x07, 0xa2, 0x84, 0x7b, 0x48, 0x14, 0x11, 0xff, - 0xca, 0x00, 0x08, 0xd7, 0x50, 0x15, 0x40, 0xae, 0x7e, 0x60, 0xf9, 0xdb, 0x65, 0x63, 0xc9, 0x58, - 0x36, 0x49, 0x04, 0x82, 0xce, 0xc1, 0xd1, 0x70, 0x76, 0xcb, 0xdd, 0xdc, 0xb6, 0xbc, 0x76, 0x39, - 0x29, 0xd0, 0xf6, 0x2f, 0x20, 0x04, 0xa6, 0x67, 0x31, 0x5a, 0x4e, 0x2d, 0x19, 0xcb, 0x29, 0x22, - 0xc6, 0xe8, 0x38, 0x64, 0x18, 0x75, 0x2c, 0x87, 0x95, 0xcd, 0x25, 0x63, 0x39, 0x4f, 0xd4, 0x8c, - 0xc3, 0xb9, 0xec, 0xd4, 0x2f, 0xa7, 0x97, 0x8c, 0xe5, 0x39, 0xa2, 0x66, 0xf8, 0xb3, 0x14, 0x14, - 0x3f, 0x1c, 0x52, 0x6f, 0xa4, 0x14, 0x80, 0xaa, 0x90, 0xf3, 0x69, 0x8f, 0xb6, 0x98, 0xeb, 0x09, - 0x06, 0xf3, 0xcd, 0x64, 0xd9, 0x20, 0x01, 0x0c, 0x95, 0x20, 0xdd, 0xb3, 0xfb, 0x36, 0x13, 0x6c, - 0xcd, 0x11, 0x39, 0x41, 0x97, 0x20, 0xed, 0x33, 0xcb, 0x63, 0x82, 0x97, 0xc2, 0x4a, 0xa5, 0x2e, - 0x8d, 0x56, 0xd7, 0x46, 0xab, 0xdf, 0xd5, 0x46, 0x6b, 0xe6, 0x9e, 0x8c, 0x6b, 0x89, 0x4f, 0xff, - 0x56, 0x33, 0x88, 0xdc, 0x82, 0x2e, 0x42, 0x8a, 0x3a, 0x6d, 0xc1, 0xef, 0xd7, 0xdd, 0xc9,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x91, 0xf0, 0x21, 0xde, 0x80, 0x8c, 0x64, 0x04, 0x55, 0x26, 0xb5, 0x1d, - 0xbf, 0x19, 0xa1, 0xa6, 0x53, 0x5a, 0x87, 0x0b, 0xa1, 0x0e, 0x53, 0x42, 0x3b, 0xf8, 0xd7, 0x06, - 0xcc, 0x29, 0x13, 0xaa, 0xe8, 0xb2, 0x05, 0x59, 0x79, 0xbb, 0x75, 0x64, 0x39, 0x31, 0x19, 0x59, - 0xae, 0xb4, 0xad, 0x01, 0xa3, 0x5e, 0xb3, 0xf1, 0x64, 0x5c, 0x33, 0xbe, 0x1c, 0xd7, 0xde, 0x78, - 0x91, 0x94, 0x22, 0xc8, 0xa9, 0xa8, 0xa3, 0x09, 0xa3, 0x37, 0x05, 0x77, 0xcc, 0x57, 0x7e, 0x70, - 0xa4, 0x2e, 0x03, 0xe4, 0xba, 0xd3, 0xa5, 0x3e, 0xa7, 0x6c, 0x72, 0x13, 0x12, 0x89, 0x83, 0x7f, - 0x0a, 0x8b, 0x31, 0x57, 0x53, 0x7c, 0xbe, 0x0b, 0x19, 0x9f, 0x2b, 0x50, 0xb3, 0x19, 0x31, 0xd4, - 0xa6, 0x80, 0x37, 0xe7, 0x15, 0x7f, 0x19, 0x39, 0x27, 0x0a, 0x7f, 0xb6, 0xd3, 0xff, 0x62, 0x40, - 0x71, 0xc3, 0xda, 0xa2, 0x3d, 0xed, 0xe3, 0x08, 0x4c, 0xc7, 0xea, 0x53, 0xa5, 0x71, 0x31, 0xe6, - 0x01, 0xed, 0x63, 0xab, 0x37, 0xa4, 0x92, 0x64, 0x8e, 0xa8, 0xd9, 0xac, 0x91, 0xc8, 0x38, 0x74, - 0x24, 0x32, 0x42, 0x7f, 0x2f, 0x41, 0x9a, 0x7b, 0xd6, 0x48, 0x44, 0xa1, 0x3c, 0x91, 0x13, 0xfc, - 0x06, 0xcc, 0x29, 0x29, 0x94, 0xfa, 0x42, 0x96, 0xb9, 0xfa, 0xf2, 0x9a, 0x65, 0x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 0x3f, 0x0c, 0x60, 0xd7, 0xcd, 0x5c, 0x72, 0x21, 0x85, 0xff, 0x60, 0x40, 0x51, - 0x4a, 0xae, 0xdc, 0xee, 0x47, 0x90, 0x91, 0x8a, 0x11, 0xb2, 0xbf, 0x20, 0xb8, 0xbc, 0x39, 0x4b, - 0x60, 0x51, 0x34, 0xd1, 0xf7, 0x60, 0xbe, 0xed, 0xb9, 0x83, 0x01, 0x6d, 0x6f, 0xaa, 0x10, 0x96, - 0x9c, 0x0c, 0x61, 0x6b, 0xd1, 0x75, 0x32, 0x81, 0x8e, 0xff, 0x6a, 0xc0, 0x9c, 0x8a, 0x16, 0xca, - 0x56, 0x81, 0x7e, 0x8d, 0x43, 0xa7, 0xac, 0xe4, 0xac, 0x29, 0xeb, 0x38, 0x64, 0xba, 0x9e, 0x3b, - 0x1c, 0xf8, 0xe5, 0x94, 0xbc, 0x9b, 0x72, 0x36, 0x5b, 0x2a, 0xc3, 0xd7, 0x61, 0x5e, 0x8b, 0x72, - 0x40, 0xc8, 0xac, 0x4c, 0x86, 0xcc, 0xf5, 0x36, 0x75, 0x98, 0xdd, 0xb1, 0x83, 0x20, 0xa8, 0xf0, - 0xf1, 0xcf, 0x0d, 0x58, 0x98, 0x44, 0x41, 0x6b, 0x91, 0x7b, 0xc6, 0xc9, 0x9d, 0x39, 0x98, 0x5c, - 0x5d, 0x04, 0x1f, 0xff, 0x7d, 0x87, 0x79, 0x23, 0x4d, 0x5a, 0xee, 0xad, 0xbc, 0x03, 0x85, 0xc8, - 0x22, 0x4f, 0x51, 0x3b, 0x54, 0xdd, 0x0c, 0xc2, 0x87, 0x61, 0x48, 0x48, 0xca, 0x80, 0x26, 0x26, - 0xf8, 0x17, 0x06, 0xcc, 0xc5, 0x6c, 0x89, 0xde, 0x05, 0xb3, 0xe3, 0xb9, 0xfd, 0x99, 0x0c, 0x25, - 0x76, 0xa0, 0x6f, 0x41, 0x92, 0xb9, 0x33, 0x99, 0x29, 0xc9, 0x5c, 0x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be, 0x0c, 0x29, 0xe2, - 0x3e, 0x42, 0x55, 0x00, 0xcf, 0x72, 0xba, 0xf4, 0x5e, 0xd0, 0x38, 0x15, 0x49, 0x04, 0x72, 0x40, - 0xc9, 0xb0, 0x0a, 0x47, 0xa3, 0x1c, 0x49, 0x73, 0xd7, 0x21, 0xfb, 0xe1, 0x30, 0xaa, 0xae, 0xd2, - 0x84, 0xba, 0x64, 0x0f, 0xae, 0x91, 0xb8, 0xcf, 0x40, 0x08, 0x47, 0x27, 0x21, 0xcf, 0xac, 0xad, - 0x1e, 0xbd, 0x15, 0x06, 0xb8, 0x10, 0xc0, 0x57, 0x79, 0xcf, 0x77, 0x2f, 0x52, 0xfb, 0x84, 0x00, - 0x74, 0x16, 0x16, 0x42, 0x9e, 0xef, 0x78, 0xb4, 0x63, 0x3f, 0x16, 0x16, 0x2e, 0x92, 0x7d, 0x70, - 0xb4, 0x0c, 0x47, 0x42, 0xd8, 0xa6, 0xa8, 0x31, 0x4c, 0x81, 0x3a, 0x09, 0xe6, 0xba, 0x11, 0xe2, - 0xbe, 0xff, 0x70, 0x68, 0xf5, 0xc4, 0xcd, 0x2b, 0x92, 0x08, 0x04, 0xff, 0xd9, 0x80, 0xa3, 0xd2, - 0xd4, 0xbc, 0xdb, 0x7f, 0x15, 0xbd, 0xfe, 0x33, 0x03, 0x50, 0x54, 0x02, 0xe5, 0x5a, 0xdf, 0x88, - 0x3e, 0xe3, 0xf0, 0x22, 0xa6, 0x20, 0x5a, 0x59, 0x09, 0x0a, 0x5f, 0x62, 0x30, 0x64, 0x44, 0x21, - 0x24, 0x7b, 0x6a, 0x53, 0xf6, 0xca, 0x12, 0x42, 0xd4, 0x97, 0xb7, 0xf8, 0x5b, 0x23, 0x46, 0x7d, - 0xd5, 0xe9, 0x8a, 0x16, 0x5f, 0x00, 0x88, 0xfc, 0xf0, 0xb3, 0xa8, 0xc3, 0x84, 0xd7, 0x98, 0xe1, - 0x59, 0x0a, 0x44, 0xf4, 0x00, 0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 0x34, 0x8d, 0x53, 0x50, 0x0e, 0x4e, 0xbc, 0xdf, 0xf7, 0x95, 0x53, 0x97, + 0x02, 0xd8, 0x0d, 0x1f, 0xff, 0xc2, 0x00, 0x65, 0x67, 0x84, 0x21, 0xd7, 0xe3, 0xb2, 0xfa, 0x2a, + 0x06, 0xc1, 0xde, 0xa8, 0xa1, 0x20, 0x44, 0x7d, 0xd1, 0x25, 0xc8, 0xfb, 0xe2, 0x44, 0x4e, 0x2c, + 0xe9, 0x3e, 0x62, 0xa1, 0x75, 0x84, 0xbb, 0xc1, 0xde, 0xa8, 0xa1, 0x11, 0x89, 0x1e, 0xa0, 0xc5, + 0x58, 0xe6, 0x94, 0x82, 0x4d, 0xef, 0x8d, 0x1a, 0x11, 0x68, 0x34, 0x93, 0xe2, 0x7f, 0x18, 0x50, + 0xba, 0x63, 0xd9, 0x81, 0x0b, 0x55, 0xb5, 0x89, 0xc2, 0x18, 0x29, 0x01, 0xfc, 0x4a, 0x77, 0x68, + 0xcf, 0xda, 0xb9, 0xe2, 0x7a, 0x82, 0xee, 0x14, 0x09, 0xe6, 0x61, 0xb2, 0x33, 0xc7, 0x26, 0xbb, + 0xec, 0xe4, 0x21, 0xf5, 0xbf, 0x18, 0xc0, 0xae, 0x99, 0x85, 0xf4, 0x4c, 0x06, 0xff, 0xde, 0x80, + 0xb2, 0x94, 0x5c, 0xb9, 0xdd, 0x0f, 0x21, 0x27, 0x15, 0x23, 0x64, 0x7f, 0x4e, 0x70, 0x79, 0x63, + 0x92, 0xc0, 0xa2, 0x68, 0xa2, 0xf7, 0x60, 0xba, 0xe3, 0xb9, 0x83, 0x01, 0xed, 0xac, 0xab, 0x10, + 0x96, 0x4e, 0x86, 0xb0, 0x95, 0xe8, 0x3a, 0x49, 0xa0, 0xe3, 0xbf, 0x18, 0x30, 0xa5, 0xa2, 0x85, + 0xb2, 0x55, 0xa0, 0x5f, 0xe3, 0xd0, 0x29, 0x2b, 0x3d, 0x69, 0xca, 0x9a, 0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x98, 0x43, 0xc5, 0xbe, 0xd3, 0x60, 0x7a, 0x74, 0x53, 0x27, 0x69, 0x14, 0x1e, 0x1b, 0x60, 0x8a, + 0x75, 0xfc, 0x47, 0x03, 0x66, 0xae, 0x52, 0x16, 0x2f, 0x7f, 0x5e, 0x22, 0x63, 0xe2, 0x0f, 0xe0, + 0x68, 0x84, 0x7f, 0x25, 0xfd, 0xf9, 0x44, 0xcd, 0x73, 0x2c, 0x94, 0x7f, 0xd5, 0xe9, 0xd0, 0x47, + 0xaa, 0x57, 0x8c, 0x97, 0x3b, 0xb7, 0xa1, 0x14, 0x59, 0x44, 0x97, 0x13, 0x85, 0x4e, 0xe4, 0x65, + 0x27, 0x48, 0xd6, 0xad, 0x8a, 0x92, 0x49, 0x76, 0x8b, 0xaa, 0x8c, 0x0d, 0x8a, 0x82, 0x75, 0x40, + 0xc2, 0x5c, 0x82, 0x6c, 0x34, 0x2d, 0x09, 0xe8, 0xf5, 0xa0, 0xe2, 0x09, 0xe6, 0xe8, 0x14, 0x98, + 0x9e, 0xfb, 0x50, 0x57, 0xb0, 0x53, 0xe1, 0x91, 0xc4, 0x7d, 0x48, 0xc4, 0x12, 0xbe, 0x04, 0x19, + 0xe2, 0x3e, 0x44, 0x75, 0x00, 0xcf, 0x72, 0xba, 0xf4, 0x6e, 0xd0, 0x38, 0x95, 0x49, 0x04, 0x72, + 0x40, 0xc9, 0xb0, 0x0c, 0x47, 0xa3, 0x1c, 0x49, 0x73, 0x2f, 0x42, 0xfe, 0xc3, 0x61, 0x54, 0x5d, + 0x95, 0x84, 0xba, 0x64, 0x0f, 0xae, 0x91, 0xb8, 0xcf, 0x40, 0x08, 0x47, 0x27, 0xa0, 0xc8, 0xac, + 0x8d, 0x1e, 0xbd, 0x19, 0x06, 0xb8, 0x10, 0xc0, 0x57, 0x79, 0xcf, 0x77, 0x37, 0x52, 0xfb, 0x84, + 0x00, 0x74, 0x06, 0x66, 0x42, 0x9e, 0x6f, 0x7b, 0x74, 0xd3, 0x7e, 0x24, 0x2c, 0x5c, 0x26, 0xfb, + 0xe0, 0x68, 0x01, 0x8e, 0x84, 0xb0, 0x75, 0x51, 0x63, 0x98, 0x02, 0x35, 0x09, 0xe6, 0xba, 0x11, + 0xe2, 0xbe, 0xff, 0x60, 0x68, 0xf5, 0xc4, 0xcd, 0x2b, 0x93, 0x08, 0x04, 0xff, 0xc9, 0x80, 0xa3, + 0xd2, 0xd4, 0xbc, 0xdb, 0x7f, 0x19, 0xbd, 0xfe, 0x33, 0x03, 0x50, 0x54, 0x02, 0xe5, 0x5a, 0xaf, + 0x45, 0x9f, 0x71, 0x78, 0x11, 0x53, 0x12, 0xad, 0xac, 0x04, 0x85, 0x2f, 0x31, 0x18, 0x72, 0xa2, + 0x10, 0x92, 0x3d, 0xb5, 0x29, 0x7b, 0x65, 0x09, 0x21, 0xea, 0xcb, 0x5b, 0xfc, 0x8d, 0x1d, 0x46, + 0x7d, 0xd5, 0xe9, 0x8a, 0x16, 0x5f, 0x00, 0x88, 0xfc, 0xf0, 0xb3, 0xa8, 0xc3, 0x84, 0xd7, 0x98, + 0xe1, 0x59, 0x0a, 0x44, 0xf4, 0x00, 0xff, 0x2e, 0x0d, 0x53, 0x77, 0xdd, 0xde, 0x30, 0x4c, 0x89, + 0x2f, 0x53, 0xaa, 0x88, 0xb5, 0xdf, 0x59, 0xdd, 0x7e, 0x23, 0x30, 0x7d, 0x46, 0x07, 0xc2, 0xb3, + 0x32, 0x44, 0x8c, 0x11, 0x86, 0x32, 0xb3, 0xbc, 0x2e, 0x65, 0xb2, 0xaf, 0xa9, 0xe6, 0x44, 0xc1, + 0x19, 0x83, 0xa1, 0x79, 0x28, 0x59, 0xdd, 0xae, 0x47, 0xbb, 0x16, 0xa3, 0xad, 0x9d, 0x6a, 0x5e, + 0x1c, 0x16, 0x05, 0xe1, 0x8f, 0x60, 0x5a, 0x2b, 0x4b, 0x99, 0xf4, 0x2d, 0xc8, 0x7f, 0x2c, 0x20, + 0x63, 0x9e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x71, 0x0a, + 0x7d, 0x24, 0xca, 0xd3, 0x78, 0x24, 0x42, 0x8d, 0x03, 0x22, 0x4e, 0xc0, 0xd7, 0xfc, 0xc1, 0x08, + 0x9a, 0xf2, 0xd2, 0x8f, 0xf4, 0xff, 0xba, 0x2b, 0x16, 0xb3, 0xd0, 0x2d, 0x98, 0x16, 0x22, 0x07, + 0x7f, 0xfc, 0xc6, 0x5c, 0x73, 0xdf, 0xbf, 0xcc, 0x31, 0xd7, 0xdc, 0xff, 0x6f, 0x33, 0x4e, 0xb5, + 0xee, 0x3d, 0x79, 0x5a, 0x4f, 0x7d, 0xf1, 0xb4, 0x9e, 0xfa, 0xea, 0x69, 0xdd, 0xf8, 0xe9, 0x6e, + 0xdd, 0xf8, 0xed, 0x6e, 0xdd, 0x78, 0xbc, 0x5b, 0x37, 0x9e, 0xec, 0xd6, 0x8d, 0xbf, 0xed, 0xd6, + 0x8d, 0xbf, 0xef, 0xd6, 0x53, 0x5f, 0xed, 0xd6, 0x8d, 0x4f, 0x9f, 0xd5, 0x53, 0x4f, 0x9e, 0xd5, + 0x53, 0x5f, 0x3c, 0xab, 0xa7, 0xee, 0xbd, 0xfa, 0x6f, 0x7a, 0x25, 0x19, 0x6a, 0x72, 0xe2, 0x73, + 0xfe, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x75, 0x76, 0x03, 0x96, 0x1f, 0x00, 0x00, } func (x Direction) String() string { @@ -4460,6 +4610,97 @@ func (this *DetectedField) Equal(that interface{}) bool { } return true } +func (this *DetectedLabelsRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DetectedLabelsRequest) + if !ok { + that2, ok := that.(DetectedLabelsRequest) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if that1.Start == nil { + if this.Start != nil { + return false + } + } else if !this.Start.Equal(*that1.Start) { + return false + } + if that1.End == nil { + if this.End != nil { + return false + } + } else if !this.End.Equal(*that1.End) { + return false + } + if this.Query != that1.Query { + return false + } + return true +} +func (this *DetectedLabelsResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DetectedLabelsResponse) + if !ok { + that2, ok := that.(DetectedLabelsResponse) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.DetectedLabels) != len(that1.DetectedLabels) { + return false + } + for i := range this.DetectedLabels { + if !this.DetectedLabels[i].Equal(that1.DetectedLabels[i]) { + return false + } + } + return true +} +func (this *DetectedLabel) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DetectedLabel) + if !ok { + that2, ok := that.(DetectedLabel) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Label != that1.Label { + return false + } + return true +} func (this *StreamRatesRequest) GoString() string { if this == nil { return "nil" @@ -5077,6 +5318,40 @@ func (this *DetectedField) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *DetectedLabelsRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&logproto.DetectedLabelsRequest{") + s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n") + s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n") + s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DetectedLabelsResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&logproto.DetectedLabelsResponse{") + if this.DetectedLabels != nil { + s = append(s, "DetectedLabels: "+fmt.Sprintf("%#v", this.DetectedLabels)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DetectedLabel) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&logproto.DetectedLabel{") + s = append(s, "Label: "+fmt.Sprintf("%#v", this.Label)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} func valueToGoStringLogproto(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -7795,45 +8070,162 @@ func (m *DetectedField) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintLogproto(dAtA []byte, offset int, v uint64) int { - offset -= sovLogproto(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *DetectedLabelsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *StreamRatesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n + +func (m *DetectedLabelsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StreamRatesResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *DetectedLabelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.StreamRates) > 0 { - for _, e := range m.StreamRates { - l = e.Size() - n += 1 + l + sovLogproto(uint64(l)) + if len(m.Query) > 0 { + i -= len(m.Query) + copy(dAtA[i:], m.Query) + i = encodeVarintLogproto(dAtA, i, uint64(len(m.Query))) + i-- + dAtA[i] = 0x1a + } + if m.End != nil { + n23, err23 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.End):]) + if err23 != nil { + return 0, err23 } + i -= n23 + i = encodeVarintLogproto(dAtA, i, uint64(n23)) + i-- + dAtA[i] = 0x12 } - return n + if m.Start != nil { + n24, err24 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start):]) + if err24 != nil { + return 0, err24 + } + i -= n24 + i = encodeVarintLogproto(dAtA, i, uint64(n24)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *StreamRate) Size() (n int) { - if m == nil { - return 0 - } +func (m *DetectedLabelsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DetectedLabelsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DetectedLabelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DetectedLabels) > 0 { + for iNdEx := len(m.DetectedLabels) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DetectedLabels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogproto(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DetectedLabel) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DetectedLabel) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DetectedLabel) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Label) > 0 { + i -= len(m.Label) + copy(dAtA[i:], m.Label) + i = encodeVarintLogproto(dAtA, i, uint64(len(m.Label))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintLogproto(dAtA []byte, offset int, v uint64) int { + offset -= sovLogproto(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *StreamRatesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *StreamRatesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StreamRates) > 0 { + for _, e := range m.StreamRates { + l = e.Size() + n += 1 + l + sovLogproto(uint64(l)) + } + } + return n +} + +func (m *StreamRate) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StreamHash != 0 { @@ -8744,6 +9136,55 @@ func (m *DetectedField) Size() (n int) { return n } +func (m *DetectedLabelsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Start != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start) + n += 1 + l + sovLogproto(uint64(l)) + } + if m.End != nil { + l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.End) + n += 1 + l + sovLogproto(uint64(l)) + } + l = len(m.Query) + if l > 0 { + n += 1 + l + sovLogproto(uint64(l)) + } + return n +} + +func (m *DetectedLabelsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DetectedLabels) > 0 { + for _, e := range m.DetectedLabels { + l = e.Size() + n += 1 + l + sovLogproto(uint64(l)) + } + } + return n +} + +func (m *DetectedLabel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Label) + if l > 0 { + n += 1 + l + sovLogproto(uint64(l)) + } + return n +} + func sovLogproto(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -9386,6 +9827,43 @@ func (this *DetectedField) String() string { }, "") return s } +func (this *DetectedLabelsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DetectedLabelsRequest{`, + `Start:` + strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1) + `,`, + `End:` + strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1) + `,`, + `Query:` + fmt.Sprintf("%v", this.Query) + `,`, + `}`, + }, "") + return s +} +func (this *DetectedLabelsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForDetectedLabels := "[]*DetectedLabel{" + for _, f := range this.DetectedLabels { + repeatedStringForDetectedLabels += strings.Replace(f.String(), "DetectedLabel", "DetectedLabel", 1) + "," + } + repeatedStringForDetectedLabels += "}" + s := strings.Join([]string{`&DetectedLabelsResponse{`, + `DetectedLabels:` + repeatedStringForDetectedLabels + `,`, + `}`, + }, "") + return s +} +func (this *DetectedLabel) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DetectedLabel{`, + `Label:` + fmt.Sprintf("%v", this.Label) + `,`, + `}`, + }, "") + return s +} func valueToStringLogproto(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -15677,6 +16155,335 @@ func (m *DetectedField) Unmarshal(dAtA []byte) error { } return nil } +func (m *DetectedLabelsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DetectedLabelsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DetectedLabelsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogproto + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogproto + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Start == nil { + m.Start = new(time.Time) + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Start, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogproto + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogproto + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.End == nil { + m.End = new(time.Time) + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.End, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogproto + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogproto + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Query = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogproto(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DetectedLabelsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DetectedLabelsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DetectedLabelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectedLabels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogproto + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogproto + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DetectedLabels = append(m.DetectedLabels, &DetectedLabel{}) + if err := m.DetectedLabels[len(m.DetectedLabels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogproto(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DetectedLabel) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DetectedLabel: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DetectedLabel: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogproto + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogproto + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogproto + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Label = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogproto(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogproto + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipLogproto(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/pkg/logproto/logproto.proto b/pkg/logproto/logproto.proto index 136400a555f2e..9dd58a8b5f3a4 100644 --- a/pkg/logproto/logproto.proto +++ b/pkg/logproto/logproto.proto @@ -444,3 +444,23 @@ message DetectedField { string type = 2 [(gogoproto.casttype) = "DetectedFieldType"]; uint64 cardinality = 3; } + +message DetectedLabelsRequest { + google.protobuf.Timestamp start = 1 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = true + ]; + google.protobuf.Timestamp end = 2 [ + (gogoproto.stdtime) = true, + (gogoproto.nullable) = true + ]; + string query = 3; +} + +message DetectedLabelsResponse { + repeated DetectedLabel detectedLabels = 1; +} + +message DetectedLabel { + string label = 1; +} diff --git a/pkg/logql/metrics.go b/pkg/logql/metrics.go index b4cc8632ff918..ee23dc8f3f5fa 100644 --- a/pkg/logql/metrics.go +++ b/pkg/logql/metrics.go @@ -578,3 +578,7 @@ func extractShard(shards []string) *astmapper.ShardAnnotation { return &shard } + +func RecordDetectedLabelsQueryMetrics(_ context.Context, _ log.Logger, _ time.Time, _ time.Time, _ string, _ string, _ logql_stats.Result) { + // TODO(shantanu) log metrics here +} diff --git a/pkg/loki/modules.go b/pkg/loki/modules.go index 2b438ad158ec1..cc616924c1f07 100644 --- a/pkg/loki/modules.go +++ b/pkg/loki/modules.go @@ -1040,6 +1040,7 @@ func (t *Loki) initQueryFrontend() (_ services.Service, err error) { t.Server.HTTP.Path("/loki/api/v1/label/{name}/values").Methods("GET", "POST").Handler(frontendHandler) t.Server.HTTP.Path("/loki/api/v1/series").Methods("GET", "POST").Handler(frontendHandler) t.Server.HTTP.Path("/loki/api/v1/detected_fields").Methods("GET", "POST").Handler(frontendHandler) + t.Server.HTTP.Path("/loki/api/v1/detected_labels").Methods("GET", "POST").Handler(frontendHandler) t.Server.HTTP.Path("/loki/api/v1/index/stats").Methods("GET", "POST").Handler(frontendHandler) t.Server.HTTP.Path("/loki/api/v1/index/shards").Methods("GET", "POST").Handler(frontendHandler) t.Server.HTTP.Path("/loki/api/v1/index/volume").Methods("GET", "POST").Handler(frontendHandler) diff --git a/pkg/querier/handler.go b/pkg/querier/handler.go index b2a7fd70cae44..f5415344ab0c1 100644 --- a/pkg/querier/handler.go +++ b/pkg/querier/handler.go @@ -120,6 +120,13 @@ func (h *Handler) Do(ctx context.Context, req queryrangebase.Request) (queryrang return &queryrange.DetectedFieldsResponse{ Response: result, }, nil + case *queryrange.DetectedLabelsRequest: + result, err := h.api.DetectedLabelsHandler(ctx, &concrete.DetectedLabelsRequest) + if err != nil { + return nil, err + } + + return &queryrange.DetectedLabelsResponse{Response: result}, nil default: return nil, fmt.Errorf("unsupported query type %T", req) } diff --git a/pkg/querier/http.go b/pkg/querier/http.go index c3b74428b5b1f..348de10d0e16d 100644 --- a/pkg/querier/http.go +++ b/pkg/querier/http.go @@ -409,6 +409,16 @@ func (q *QuerierAPI) validateMaxEntriesLimits(ctx context.Context, expr syntax.E return nil } +// DetectedLabelsHandler returns a response for detected labels +func (q *QuerierAPI) DetectedLabelsHandler(ctx context.Context, req *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) { + resp, err := q.querier.DetectedLabels(ctx, req) + + if err != nil { + return nil, err + } + return resp, nil +} + // WrapQuerySpanAndTimeout applies a context deadline and a span logger to a query call. // // The timeout is based on the per-tenant query timeout configuration. diff --git a/pkg/querier/multi_tenant_querier.go b/pkg/querier/multi_tenant_querier.go index 6338b51e978a6..0643caeb7b315 100644 --- a/pkg/querier/multi_tenant_querier.go +++ b/pkg/querier/multi_tenant_querier.go @@ -258,6 +258,28 @@ func (q *MultiTenantQuerier) Volume(ctx context.Context, req *logproto.VolumeReq return merged, nil } +func (q *MultiTenantQuerier) DetectedLabels(ctx context.Context, req *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) { + // TODO(shantanu) + tenantIDs, err := tenant.TenantID(ctx) + if err != nil { + return nil, err + } + + if len(tenantIDs) == 1 { + return q.Querier.DetectedLabels(ctx, req) + } + + //resp := make([]*logproto.DetectedLabels, len(tenantIDs)) + + return &logproto.DetectedLabelsResponse{ + DetectedLabels: []*logproto.DetectedLabel{ + {Label: "cluster"}, + {Label: "namespace"}, + {Label: "instance"}, + }, + }, nil +} + // removeTenantSelector filters the given tenant IDs based on any tenant ID filter the in passed selector. func removeTenantSelector(params logql.SelectSampleParams, tenantIDs []string) (map[string]struct{}, syntax.Expr, error) { expr, err := params.Expr() diff --git a/pkg/querier/querier.go b/pkg/querier/querier.go index c2e744a6f03d9..ff83302a0e288 100644 --- a/pkg/querier/querier.go +++ b/pkg/querier/querier.go @@ -96,6 +96,7 @@ type Querier interface { IndexShards(ctx context.Context, req *loghttp.RangeQuery, targetBytesPerShard uint64) (*logproto.ShardsResponse, error) Volume(ctx context.Context, req *logproto.VolumeRequest) (*logproto.VolumeResponse, error) DetectedFields(ctx context.Context, req *logproto.DetectedFieldsRequest) (*logproto.DetectedFieldsResponse, error) + DetectedLabels(ctx context.Context, req *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) } type Limits querier_limits.Limits @@ -910,3 +911,13 @@ func (q *SingleTenantQuerier) DetectedFields(_ context.Context, _ *logproto.Dete }, }, nil } + +func (q *SingleTenantQuerier) DetectedLabels(_ context.Context, _ *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) { + return &logproto.DetectedLabelsResponse{ + DetectedLabels: []*logproto.DetectedLabel{ + {Label: "namespace"}, + {Label: "cluster"}, + {Label: "instance"}, + }, + }, nil +} diff --git a/pkg/querier/querier_mock_test.go b/pkg/querier/querier_mock_test.go index b94037898c554..7be2c0cefed0d 100644 --- a/pkg/querier/querier_mock_test.go +++ b/pkg/querier/querier_mock_test.go @@ -592,6 +592,18 @@ func (q *querierMock) DetectedFields(ctx context.Context, req *logproto.Detected return resp.(*logproto.DetectedFieldsResponse), err } +func (q *querierMock) DetectedLabels(ctx context.Context, req *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) { + args := q.MethodCalled("DetectedFields", ctx, req) + + resp := args.Get(0) + err := args.Error(1) + if resp == nil { + return nil, err + } + + return resp.(*logproto.DetectedLabelsResponse), err +} + type engineMock struct { util.ExtendedMock } diff --git a/pkg/querier/queryrange/codec.go b/pkg/querier/queryrange/codec.go index f56ef55c08e20..d850df4954560 100644 --- a/pkg/querier/queryrange/codec.go +++ b/pkg/querier/queryrange/codec.go @@ -6,12 +6,12 @@ import ( "context" "errors" "fmt" - io "io" + "io" "net/http" "net/url" "regexp" "sort" - strings "strings" + "strings" "time" "github.com/grafana/loki/pkg/storage/chunk/cache/resultscache" @@ -261,6 +261,80 @@ func (r *LabelRequest) Path() string { func (*LabelRequest) GetCachingOptions() (res queryrangebase.CachingOptions) { return } +type DetectedLabelsRequest struct { + path string + logproto.DetectedLabelsRequest +} + +// NewDetectedLabelsRequest creates a new request for detected labels +func NewDetectedLabelsRequest(start, end time.Time, query, path string) *DetectedLabelsRequest { + return &DetectedLabelsRequest{ + DetectedLabelsRequest: logproto.DetectedLabelsRequest{ + Start: &start, + End: &end, + Query: query, + }, + path: path, + } +} + +func (r *DetectedLabelsRequest) AsProto() *logproto.DetectedLabelsRequest { + return &r.DetectedLabelsRequest +} + +func (r *DetectedLabelsRequest) GetEnd() time.Time { + return *r.End +} + +func (r *DetectedLabelsRequest) GetEndTs() time.Time { + return *r.End +} + +func (r *DetectedLabelsRequest) GetStart() time.Time { + return *r.Start +} + +func (r *DetectedLabelsRequest) GetStartTs() time.Time { + return *r.Start +} + +func (r *DetectedLabelsRequest) GetStep() int64 { + return 0 +} + +func (r *DetectedLabelsRequest) WithStartEnd(s, e time.Time) queryrangebase.Request { + clone := *r + clone.Start = &s + clone.End = &e + return &clone +} + +// WithStartEndForCache implements resultscache.Request. +func (r *DetectedLabelsRequest) WithStartEndForCache(s time.Time, e time.Time) resultscache.Request { + return r.WithStartEnd(s, e).(resultscache.Request) +} + +func (r *DetectedLabelsRequest) WithQuery(query string) queryrangebase.Request { + clone := *r + clone.Query = query + return &clone +} + +func (r *DetectedLabelsRequest) LogToSpan(sp opentracing.Span) { + sp.LogFields( + otlog.String("start", timestamp.Time(r.GetStart().UnixNano()).String()), + otlog.String("end", timestamp.Time(r.GetEnd().UnixNano()).String()), + ) +} + +func (r *DetectedLabelsRequest) Path() string { + return r.path +} + +func (*DetectedLabelsRequest) GetCachingOptions() (res queryrangebase.CachingOptions) { + return +} + func (Codec) DecodeRequest(_ context.Context, r *http.Request, _ []string) (queryrangebase.Request, error) { if err := r.ParseForm(); err != nil { return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error()) @@ -399,6 +473,16 @@ func (Codec) DecodeRequest(_ context.Context, r *http.Request, _ []string) (quer DetectedFieldsRequest: *req, path: r.URL.Path, }, nil + case DetectedLabelsOp: + req, err := loghttp.ParseDetectedLabelsQuery(r) + if err != nil { + return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error()) + } + + return &DetectedLabelsRequest{ + DetectedLabelsRequest: *req, + path: r.URL.Path, + }, nil default: return nil, httpgrpc.Errorf(http.StatusNotFound, fmt.Sprintf("unknown request path: %s", r.URL.Path)) } @@ -602,6 +686,15 @@ func (Codec) DecodeHTTPGrpcRequest(ctx context.Context, r *httpgrpc.HTTPRequest) DetectedFieldsRequest: *req, path: httpReq.URL.Path, }, ctx, nil + case DetectedLabelsOp: + req, err := loghttp.ParseDetectedLabelsQuery(httpReq) + if err != nil { + return nil, ctx, httpgrpc.Errorf(http.StatusBadRequest, err.Error()) + } + return &DetectedLabelsRequest{ + DetectedLabelsRequest: *req, + path: httpReq.URL.Path, + }, ctx, err default: return nil, ctx, httpgrpc.Errorf(http.StatusBadRequest, fmt.Sprintf("unknown request path in HTTP gRPC decode: %s", r.Url)) } @@ -878,6 +971,26 @@ func (c Codec) EncodeRequest(ctx context.Context, r queryrangebase.Request) (*ht Header: header, } + return req.WithContext(ctx), nil + case *DetectedLabelsRequest: + params := url.Values{ + "start": []string{fmt.Sprintf("%d", request.Start.UnixNano())}, + "end": []string{fmt.Sprintf("%d", request.End.UnixNano())}, + "query": []string{request.GetQuery()}, + } + + u := &url.URL{ + Path: "/loki/api/v1/detected_labels", + RawQuery: params.Encode(), + } + req := &http.Request{ + Method: "GET", + RequestURI: u.String(), // This is what the httpgrpc code looks at. + URL: u, + Body: http.NoBody, + Header: header, + } + return req.WithContext(ctx), nil default: return nil, httpgrpc.Errorf(http.StatusInternalServerError, fmt.Sprintf("invalid request format, got (%T)", r)) @@ -906,6 +1019,8 @@ func (c Codec) Path(r queryrangebase.Request) string { return "/loki/api/v1/index/volume_range" case *DetectedFieldsRequest: return "/loki/api/v1/detected_fields" + case *DetectedLabelsRequest: + return "/loki/api/v1/detected_labels" } return "other" @@ -1234,6 +1349,10 @@ func encodeResponseJSONTo(version loghttp.Version, res queryrangebase.Response, if err := marshal.WriteDetectedFieldsResponseJSON(response.Response, w); err != nil { return err } + case *DetectedLabelsResponse: + if err := marshal.WriteDetectedLabelsResponseJSON(response.Response, w); err != nil { + return err + } default: return httpgrpc.Errorf(http.StatusInternalServerError, fmt.Sprintf("invalid response format, got (%T)", res)) } diff --git a/pkg/querier/queryrange/extensions.go b/pkg/querier/queryrange/extensions.go index b2924341eac72..40e5321e9db66 100644 --- a/pkg/querier/queryrange/extensions.go +++ b/pkg/querier/queryrange/extensions.go @@ -253,3 +253,20 @@ func (m *DetectedFieldsResponse) WithHeaders(h []queryrangebase.PrometheusRespon m.Headers = h return m } + +// GetHeaders returns the HTTP headers in the response. +func (m *DetectedLabelsResponse) GetHeaders() []*queryrangebase.PrometheusResponseHeader { + if m != nil { + return convertPrometheusResponseHeadersToPointers(m.Headers) + } + return nil +} + +func (m *DetectedLabelsResponse) SetHeader(name, value string) { + m.Headers = setHeader(m.Headers, name, value) +} + +func (m *DetectedLabelsResponse) WithHeaders(h []queryrangebase.PrometheusResponseHeader) queryrangebase.Response { + m.Headers = h + return m +} diff --git a/pkg/querier/queryrange/marshal.go b/pkg/querier/queryrange/marshal.go index 473b3714464e2..3640012f88a29 100644 --- a/pkg/querier/queryrange/marshal.go +++ b/pkg/querier/queryrange/marshal.go @@ -212,6 +212,8 @@ func QueryResponseUnwrap(res *QueryResponse) (queryrangebase.Response, error) { return concrete.TopkSketches, nil case *QueryResponse_QuantileSketches: return concrete.QuantileSketches, nil + case *QueryResponse_DetectedLabels: + return concrete.DetectedLabels, nil default: return nil, fmt.Errorf("unsupported QueryResponse response type, got (%T)", res.Response) } @@ -247,6 +249,8 @@ func QueryResponseWrap(res queryrangebase.Response) (*QueryResponse, error) { p.Response = &QueryResponse_QuantileSketches{response} case *ShardsResponse: p.Response = &QueryResponse_ShardsResponse{response} + case *DetectedLabelsResponse: + p.Response = &QueryResponse_DetectedLabels{response} default: return nil, fmt.Errorf("invalid response format, got (%T)", res) } @@ -335,6 +339,10 @@ func (Codec) QueryRequestUnwrap(ctx context.Context, req *QueryRequest) (queryra return &LabelRequest{ LabelRequest: *concrete.Labels, }, ctx, nil + case *QueryRequest_DetectedLabels: + return &DetectedLabelsRequest{ + DetectedLabelsRequest: *concrete.DetectedLabels, + }, ctx, nil default: return nil, ctx, fmt.Errorf("unsupported request type while unwrapping, got (%T)", req.Request) } @@ -361,6 +369,8 @@ func (Codec) QueryRequestWrap(ctx context.Context, r queryrangebase.Request) (*Q result.Request = &QueryRequest_Streams{Streams: req} case *logproto.ShardsRequest: result.Request = &QueryRequest_ShardsRequest{ShardsRequest: req} + case *DetectedLabelsRequest: + result.Request = &QueryRequest_DetectedLabels{DetectedLabels: &req.DetectedLabelsRequest} default: return nil, fmt.Errorf("unsupported request type while wrapping, got (%T)", r) } diff --git a/pkg/querier/queryrange/queryrange.pb.go b/pkg/querier/queryrange/queryrange.pb.go index 1eaee30c61eb8..2312afbd71e7c 100644 --- a/pkg/querier/queryrange/queryrange.pb.go +++ b/pkg/querier/queryrange/queryrange.pb.go @@ -905,6 +905,43 @@ func (m *DetectedFieldsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_DetectedFieldsResponse proto.InternalMessageInfo +type DetectedLabelsResponse struct { + Response *github_com_grafana_loki_pkg_logproto.DetectedLabelsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/pkg/logproto.DetectedLabelsResponse" json:"response,omitempty"` + Headers []github_com_grafana_loki_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` +} + +func (m *DetectedLabelsResponse) Reset() { *m = DetectedLabelsResponse{} } +func (*DetectedLabelsResponse) ProtoMessage() {} +func (*DetectedLabelsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_51b9d53b40d11902, []int{15} +} +func (m *DetectedLabelsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DetectedLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DetectedLabelsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DetectedLabelsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DetectedLabelsResponse.Merge(m, src) +} +func (m *DetectedLabelsResponse) XXX_Size() int { + return m.Size() +} +func (m *DetectedLabelsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DetectedLabelsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DetectedLabelsResponse proto.InternalMessageInfo + type QueryResponse struct { Status *rpc.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Types that are valid to be assigned to Response: @@ -918,13 +955,14 @@ type QueryResponse struct { // *QueryResponse_QuantileSketches // *QueryResponse_ShardsResponse // *QueryResponse_DetectedFields + // *QueryResponse_DetectedLabels Response isQueryResponse_Response `protobuf_oneof:"response"` } func (m *QueryResponse) Reset() { *m = QueryResponse{} } func (*QueryResponse) ProtoMessage() {} func (*QueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_51b9d53b40d11902, []int{15} + return fileDescriptor_51b9d53b40d11902, []int{16} } func (m *QueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -990,6 +1028,9 @@ type QueryResponse_ShardsResponse struct { type QueryResponse_DetectedFields struct { DetectedFields *DetectedFieldsResponse `protobuf:"bytes,11,opt,name=detectedFields,proto3,oneof"` } +type QueryResponse_DetectedLabels struct { + DetectedLabels *DetectedLabelsResponse `protobuf:"bytes,12,opt,name=detectedLabels,proto3,oneof"` +} func (*QueryResponse_Series) isQueryResponse_Response() {} func (*QueryResponse_Labels) isQueryResponse_Response() {} @@ -1001,6 +1042,7 @@ func (*QueryResponse_TopkSketches) isQueryResponse_Response() {} func (*QueryResponse_QuantileSketches) isQueryResponse_Response() {} func (*QueryResponse_ShardsResponse) isQueryResponse_Response() {} func (*QueryResponse_DetectedFields) isQueryResponse_Response() {} +func (*QueryResponse_DetectedLabels) isQueryResponse_Response() {} func (m *QueryResponse) GetResponse() isQueryResponse_Response { if m != nil { @@ -1086,6 +1128,13 @@ func (m *QueryResponse) GetDetectedFields() *DetectedFieldsResponse { return nil } +func (m *QueryResponse) GetDetectedLabels() *DetectedLabelsResponse { + if x, ok := m.GetResponse().(*QueryResponse_DetectedLabels); ok { + return x.DetectedLabels + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*QueryResponse) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -1099,6 +1148,7 @@ func (*QueryResponse) XXX_OneofWrappers() []interface{} { (*QueryResponse_QuantileSketches)(nil), (*QueryResponse_ShardsResponse)(nil), (*QueryResponse_DetectedFields)(nil), + (*QueryResponse_DetectedLabels)(nil), } } @@ -1112,6 +1162,7 @@ type QueryRequest struct { // *QueryRequest_Volume // *QueryRequest_ShardsRequest // *QueryRequest_DetectedFields + // *QueryRequest_DetectedLabels Request isQueryRequest_Request `protobuf_oneof:"request"` Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -1119,7 +1170,7 @@ type QueryRequest struct { func (m *QueryRequest) Reset() { *m = QueryRequest{} } func (*QueryRequest) ProtoMessage() {} func (*QueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_51b9d53b40d11902, []int{16} + return fileDescriptor_51b9d53b40d11902, []int{17} } func (m *QueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1179,6 +1230,9 @@ type QueryRequest_ShardsRequest struct { type QueryRequest_DetectedFields struct { DetectedFields *logproto.DetectedFieldsRequest `protobuf:"bytes,9,opt,name=detectedFields,proto3,oneof"` } +type QueryRequest_DetectedLabels struct { + DetectedLabels *logproto.DetectedLabelsRequest `protobuf:"bytes,10,opt,name=detectedLabels,proto3,oneof"` +} func (*QueryRequest_Series) isQueryRequest_Request() {} func (*QueryRequest_Labels) isQueryRequest_Request() {} @@ -1188,6 +1242,7 @@ func (*QueryRequest_Streams) isQueryRequest_Request() {} func (*QueryRequest_Volume) isQueryRequest_Request() {} func (*QueryRequest_ShardsRequest) isQueryRequest_Request() {} func (*QueryRequest_DetectedFields) isQueryRequest_Request() {} +func (*QueryRequest_DetectedLabels) isQueryRequest_Request() {} func (m *QueryRequest) GetRequest() isQueryRequest_Request { if m != nil { @@ -1252,6 +1307,13 @@ func (m *QueryRequest) GetDetectedFields() *logproto.DetectedFieldsRequest { return nil } +func (m *QueryRequest) GetDetectedLabels() *logproto.DetectedLabelsRequest { + if x, ok := m.GetRequest().(*QueryRequest_DetectedLabels); ok { + return x.DetectedLabels + } + return nil +} + func (m *QueryRequest) GetMetadata() map[string]string { if m != nil { return m.Metadata @@ -1270,6 +1332,7 @@ func (*QueryRequest) XXX_OneofWrappers() []interface{} { (*QueryRequest_Volume)(nil), (*QueryRequest_ShardsRequest)(nil), (*QueryRequest_DetectedFields)(nil), + (*QueryRequest_DetectedLabels)(nil), } } @@ -1289,6 +1352,7 @@ func init() { proto.RegisterType((*QuantileSketchResponse)(nil), "queryrange.QuantileSketchResponse") proto.RegisterType((*ShardsResponse)(nil), "queryrange.ShardsResponse") proto.RegisterType((*DetectedFieldsResponse)(nil), "queryrange.DetectedFieldsResponse") + proto.RegisterType((*DetectedLabelsResponse)(nil), "queryrange.DetectedLabelsResponse") proto.RegisterType((*QueryResponse)(nil), "queryrange.QueryResponse") proto.RegisterType((*QueryRequest)(nil), "queryrange.QueryRequest") proto.RegisterMapType((map[string]string)(nil), "queryrange.QueryRequest.MetadataEntry") @@ -1299,112 +1363,114 @@ func init() { } var fileDescriptor_51b9d53b40d11902 = []byte{ - // 1665 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0xc5, - 0x1b, 0xf6, 0xfa, 0x33, 0x9e, 0x7c, 0xfc, 0xf2, 0x9b, 0x44, 0xe9, 0x92, 0xb6, 0x5e, 0xcb, 0x12, - 0x6d, 0x40, 0xb0, 0xa6, 0x49, 0xe9, 0x37, 0x1f, 0x5d, 0xd2, 0xca, 0x11, 0x2d, 0x6a, 0x37, 0x11, - 0x07, 0xc4, 0x65, 0x62, 0x4f, 0x9c, 0x25, 0x6b, 0xef, 0x66, 0x67, 0x9c, 0x36, 0x07, 0x24, 0xfe, - 0x00, 0x90, 0xfa, 0x57, 0x20, 0x24, 0xaa, 0x9e, 0x38, 0x71, 0x44, 0x02, 0x7a, 0xec, 0xb1, 0xb2, - 0xc4, 0x42, 0xd3, 0x0b, 0xca, 0xa9, 0x27, 0xce, 0x68, 0x3e, 0x76, 0x3d, 0x6b, 0x3b, 0xad, 0x53, - 0x84, 0xd4, 0x48, 0x5c, 0xec, 0x99, 0xd9, 0xf7, 0x99, 0x9d, 0x7d, 0xde, 0xe7, 0x7d, 0xe7, 0x9d, - 0x01, 0xa7, 0xfd, 0xad, 0x66, 0x75, 0xbb, 0x83, 0x03, 0x07, 0x07, 0xfc, 0x7f, 0x37, 0x40, 0xed, - 0x26, 0x56, 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x1a, 0x8f, 0x9e, 0x94, 0x52, 0x8f, 0x9f, 0x94, 0x52, 0xcf, 0x9e, - 0x94, 0xb4, 0xaf, 0xf6, 0x4a, 0xda, 0x77, 0x7b, 0x25, 0xed, 0xe1, 0x5e, 0x49, 0x7b, 0xb4, 0x57, - 0xd2, 0xfe, 0xd8, 0x2b, 0x69, 0x7f, 0xee, 0x95, 0x52, 0xcf, 0xf6, 0x4a, 0xda, 0xbd, 0xa7, 0xa5, - 0xd4, 0xa3, 0xa7, 0xa5, 0xd4, 0xe3, 0xa7, 0xa5, 0xd4, 0x67, 0xe6, 0xe1, 0x12, 0xfd, 0x7a, 0x9e, - 0xd3, 0xb4, 0xf4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x87, 0x26, 0x7a, 0x65, 0x1c, 0x19, 0x00, - 0x00, + // 1712 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4d, 0x6f, 0xdb, 0x46, + 0x1a, 0x16, 0xf5, 0x69, 0x8d, 0x3f, 0xd6, 0x3b, 0x36, 0x1c, 0xae, 0x93, 0x88, 0x82, 0x80, 0x4d, + 0xbc, 0x8b, 0x5d, 0x6a, 0x63, 0x67, 0xf3, 0xbd, 0xdb, 0x86, 0x75, 0x02, 0x19, 0x4d, 0x8a, 0x84, + 0x36, 0x7a, 0x28, 0x7a, 0x19, 0x4b, 0x63, 0x99, 0x35, 0x25, 0xd2, 0x9c, 0x91, 0x13, 0x1f, 0x0a, + 0xf4, 0x07, 0xb4, 0x40, 0x80, 0xfe, 0x87, 0xa2, 0x40, 0x83, 0x9c, 0x7a, 0xea, 0xad, 0x3d, 0xb4, + 0x39, 0xe6, 0x18, 0x08, 0xa8, 0xda, 0x38, 0x97, 0xc2, 0xa7, 0xfc, 0x84, 0x62, 0x3e, 0x48, 0x0d, + 0x45, 0x39, 0x91, 0x52, 0x14, 0x88, 0x8b, 0x5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x87, + 0x7f, 0x06, 0x6b, 0x29, 0x3b, 0x81, 0x86, 0xab, 0x60, 0x86, 0xc4, 0x92, 0xb0, 0xbc, 0xe7, 0x8b, + 0xbd, 0x57, 0x3c, 0x4d, 0xd7, 0x52, 0xf6, 0x00, 0x06, 0xde, 0x02, 0x33, 0x8d, 0x58, 0x26, 0xd2, + 0x27, 0x93, 0xbb, 0x1a, 0x9e, 0xab, 0xd8, 0x6a, 0x71, 0xac, 0xba, 0x9a, 0x08, 0x47, 0x7d, 0xea, + 0xe8, 0xd5, 0xe2, 0x01, 0xab, 0xae, 0x26, 0x66, 0x2c, 0xd0, 0xcf, 0x1b, 0x95, 0x6f, 0x73, 0x60, + 0x4a, 0x46, 0x85, 0xb8, 0xd6, 0xb8, 0x18, 0x09, 0x5d, 0x04, 0xc5, 0xe9, 0xa3, 0x84, 0xce, 0xcd, + 0x15, 0x9d, 0xff, 0x27, 0xd2, 0xb9, 0x88, 0x90, 0x85, 0x7e, 0x2e, 0xe2, 0xcf, 0x55, 0x10, 0x52, + 0xdb, 0x2b, 0xa1, 0xb6, 0x45, 0x60, 0x9c, 0x1c, 0x7e, 0x44, 0x08, 0x51, 0x52, 0xd8, 0x57, 0x40, + 0xc1, 0x11, 0x37, 0xa3, 0xc3, 0x42, 0x22, 0x79, 0x71, 0xca, 0xa4, 0x2a, 0x01, 0x70, 0xa5, 0x2f, + 0x70, 0x11, 0x17, 0x27, 0x92, 0x02, 0x8f, 0x40, 0xa1, 0xbe, 0xcf, 0x45, 0xfa, 0xce, 0x4b, 0x4c, + 0xa2, 0xae, 0x8e, 0x5e, 0x4c, 0x8a, 0xfb, 0x06, 0x98, 0x0e, 0xe5, 0xc0, 0xa7, 0xa4, 0xba, 0x4f, + 0x1f, 0x55, 0x25, 0x84, 0xf8, 0x38, 0x0a, 0xae, 0x25, 0x34, 0x24, 0x94, 0x6d, 0x1c, 0xfd, 0xb9, + 0x0c, 0x57, 0x1a, 0x14, 0xd0, 0x5a, 0x42, 0x40, 0xe0, 0xa8, 0xa5, 0x42, 0xf9, 0x24, 0x96, 0x12, + 0x13, 0xb0, 0x06, 0x26, 0x5a, 0x98, 0xa2, 0x06, 0xa2, 0x48, 0x2f, 0xf0, 0xb4, 0x7f, 0x26, 0x1e, + 0x69, 0x7d, 0x31, 0x99, 0xb7, 0xa5, 0xe1, 0x8d, 0x36, 0x0d, 0xf6, 0xe5, 0xf1, 0x31, 0x42, 0x2f, + 0x5e, 0x05, 0xd3, 0x31, 0x03, 0x38, 0x0b, 0x32, 0x3b, 0x38, 0xbc, 0xe1, 0x66, 0x4d, 0x38, 0x0f, + 0x72, 0x7b, 0xc8, 0xed, 0x60, 0xae, 0xa9, 0xa2, 0x2d, 0x3a, 0x57, 0xd2, 0x97, 0x34, 0xab, 0x08, + 0x0a, 0x81, 0x78, 0x8a, 0xd5, 0x78, 0xf2, 0xac, 0x94, 0x7a, 0xfa, 0xac, 0x94, 0x7a, 0xf1, 0xac, + 0xa4, 0x7d, 0x72, 0x50, 0xd2, 0xbe, 0x3c, 0x28, 0x69, 0x8f, 0x0f, 0x4a, 0xda, 0x93, 0x83, 0x92, + 0xf6, 0xf3, 0x41, 0x49, 0xfb, 0xe5, 0xa0, 0x94, 0x7a, 0x71, 0x50, 0xd2, 0x1e, 0x3c, 0x2f, 0xa5, + 0x9e, 0x3c, 0x2f, 0xa5, 0x9e, 0x3e, 0x2f, 0xa5, 0x3e, 0x30, 0xc7, 0xfb, 0x02, 0x6d, 0xe6, 0x39, + 0x4d, 0x2b, 0xbf, 0x06, 0x00, 0x00, 0xff, 0xff, 0x7c, 0x1e, 0xb8, 0x33, 0xfe, 0x1a, 0x00, 0x00, } func (this *LokiRequest) Equal(that interface{}) bool { @@ -2008,6 +2074,42 @@ func (this *DetectedFieldsResponse) Equal(that interface{}) bool { } return true } +func (this *DetectedLabelsResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DetectedLabelsResponse) + if !ok { + that2, ok := that.(DetectedLabelsResponse) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if that1.Response == nil { + if this.Response != nil { + return false + } + } else if !this.Response.Equal(*that1.Response) { + return false + } + if len(this.Headers) != len(that1.Headers) { + return false + } + for i := range this.Headers { + if !this.Headers[i].Equal(that1.Headers[i]) { + return false + } + } + return true +} func (this *QueryResponse) Equal(that interface{}) bool { if that == nil { return this == nil @@ -2281,6 +2383,30 @@ func (this *QueryResponse_DetectedFields) Equal(that interface{}) bool { } return true } +func (this *QueryResponse_DetectedLabels) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*QueryResponse_DetectedLabels) + if !ok { + that2, ok := that.(QueryResponse_DetectedLabels) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.DetectedLabels.Equal(that1.DetectedLabels) { + return false + } + return true +} func (this *QueryRequest) Equal(that interface{}) bool { if that == nil { return this == nil @@ -2511,6 +2637,30 @@ func (this *QueryRequest_DetectedFields) Equal(that interface{}) bool { } return true } +func (this *QueryRequest_DetectedLabels) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*QueryRequest_DetectedLabels) + if !ok { + that2, ok := that.(QueryRequest_DetectedLabels) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.DetectedLabels.Equal(that1.DetectedLabels) { + return false + } + return true +} func (this *LokiRequest) GoString() string { if this == nil { return "nil" @@ -2712,11 +2862,22 @@ func (this *DetectedFieldsResponse) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *DetectedLabelsResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&queryrange.DetectedLabelsResponse{") + s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") + s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} func (this *QueryResponse) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 15) + s := make([]string, 0, 16) s = append(s, "&queryrange.QueryResponse{") if this.Status != nil { s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") @@ -2807,11 +2968,19 @@ func (this *QueryResponse_DetectedFields) GoString() string { `DetectedFields:` + fmt.Sprintf("%#v", this.DetectedFields) + `}`}, ", ") return s } +func (this *QueryResponse_DetectedLabels) GoString() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&queryrange.QueryResponse_DetectedLabels{` + + `DetectedLabels:` + fmt.Sprintf("%#v", this.DetectedLabels) + `}`}, ", ") + return s +} func (this *QueryRequest) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 13) + s := make([]string, 0, 14) s = append(s, "&queryrange.QueryRequest{") if this.Request != nil { s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") @@ -2896,6 +3065,14 @@ func (this *QueryRequest_DetectedFields) GoString() string { `DetectedFields:` + fmt.Sprintf("%#v", this.DetectedFields) + `}`}, ", ") return s } +func (this *QueryRequest_DetectedLabels) GoString() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&queryrange.QueryRequest_DetectedLabels{` + + `DetectedLabels:` + fmt.Sprintf("%#v", this.DetectedLabels) + `}`}, ", ") + return s +} func valueToGoStringQueryrange(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -3785,6 +3962,55 @@ func (m *DetectedFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *DetectedLabelsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DetectedLabelsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DetectedLabelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Headers) > 0 { + for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.Headers[iNdEx].Size() + i -= size + if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQueryrange(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Response != nil { + { + size := m.Response.Size() + i -= size + if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQueryrange(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QueryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4029,6 +4255,26 @@ func (m *QueryResponse_DetectedFields) MarshalToSizedBuffer(dAtA []byte) (int, e } return len(dAtA) - i, nil } +func (m *QueryResponse_DetectedLabels) MarshalTo(dAtA []byte) (int, error) { + return m.MarshalToSizedBuffer(dAtA[:m.Size()]) +} + +func (m *QueryResponse_DetectedLabels) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.DetectedLabels != nil { + { + size, err := m.DetectedLabels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueryrange(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + return len(dAtA) - i, nil +} func (m *QueryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4240,6 +4486,26 @@ func (m *QueryRequest_DetectedFields) MarshalToSizedBuffer(dAtA []byte) (int, er } return len(dAtA) - i, nil } +func (m *QueryRequest_DetectedLabels) MarshalTo(dAtA []byte) (int, error) { + return m.MarshalToSizedBuffer(dAtA[:m.Size()]) +} + +func (m *QueryRequest_DetectedLabels) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.DetectedLabels != nil { + { + size, err := m.DetectedLabels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueryrange(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + return len(dAtA) - i, nil +} func encodeVarintQueryrange(dAtA []byte, offset int, v uint64) int { offset -= sovQueryrange(v) base := offset @@ -4619,6 +4885,25 @@ func (m *DetectedFieldsResponse) Size() (n int) { return n } +func (m *DetectedLabelsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Response != nil { + l = m.Response.Size() + n += 1 + l + sovQueryrange(uint64(l)) + } + if len(m.Headers) > 0 { + for _, e := range m.Headers { + l = e.Size() + n += 1 + l + sovQueryrange(uint64(l)) + } + } + return n +} + func (m *QueryResponse) Size() (n int) { if m == nil { return 0 @@ -4755,6 +5040,18 @@ func (m *QueryResponse_DetectedFields) Size() (n int) { } return n } +func (m *QueryResponse_DetectedLabels) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DetectedLabels != nil { + l = m.DetectedLabels.Size() + n += 1 + l + sovQueryrange(uint64(l)) + } + return n +} func (m *QueryRequest) Size() (n int) { if m == nil { return 0 @@ -4871,6 +5168,18 @@ func (m *QueryRequest_DetectedFields) Size() (n int) { } return n } +func (m *QueryRequest_DetectedLabels) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DetectedLabels != nil { + l = m.DetectedLabels.Size() + n += 1 + l + sovQueryrange(uint64(l)) + } + return n +} func sovQueryrange(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 @@ -5076,6 +5385,17 @@ func (this *DetectedFieldsResponse) String() string { }, "") return s } +func (this *DetectedLabelsResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DetectedLabelsResponse{`, + `Response:` + fmt.Sprintf("%v", this.Response) + `,`, + `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, + `}`, + }, "") + return s +} func (this *QueryResponse) String() string { if this == nil { return "nil" @@ -5187,6 +5507,16 @@ func (this *QueryResponse_DetectedFields) String() string { }, "") return s } +func (this *QueryResponse_DetectedLabels) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&QueryResponse_DetectedLabels{`, + `DetectedLabels:` + strings.Replace(fmt.Sprintf("%v", this.DetectedLabels), "DetectedLabelsResponse", "DetectedLabelsResponse", 1) + `,`, + `}`, + }, "") + return s +} func (this *QueryRequest) String() string { if this == nil { return "nil" @@ -5288,6 +5618,16 @@ func (this *QueryRequest_DetectedFields) String() string { }, "") return s } +func (this *QueryRequest_DetectedLabels) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&QueryRequest_DetectedLabels{`, + `DetectedLabels:` + strings.Replace(fmt.Sprintf("%v", this.DetectedLabels), "DetectedLabelsRequest", "logproto.DetectedLabelsRequest", 1) + `,`, + `}`, + }, "") + return s +} func valueToStringQueryrange(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { @@ -7874,6 +8214,129 @@ func (m *DetectedFieldsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *DetectedLabelsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueryrange + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DetectedLabelsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DetectedLabelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueryrange + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueryrange + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueryrange + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Response == nil { + m.Response = &github_com_grafana_loki_pkg_logproto.DetectedLabelsResponse{} + } + if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueryrange + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueryrange + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueryrange + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Headers = append(m.Headers, github_com_grafana_loki_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) + if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueryrange(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueryrange + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueryrange + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QueryResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8289,6 +8752,41 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { } m.Response = &QueryResponse_DetectedFields{v} iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectedLabels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueryrange + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueryrange + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueryrange + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DetectedLabelsResponse{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Response = &QueryResponse_DetectedLabels{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) @@ -8749,6 +9247,41 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { } m.Request = &QueryRequest_DetectedFields{v} iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectedLabels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueryrange + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueryrange + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueryrange + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &logproto.DetectedLabelsRequest{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &QueryRequest_DetectedLabels{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) diff --git a/pkg/querier/queryrange/queryrange.proto b/pkg/querier/queryrange/queryrange.proto index 33ae8e90357bc..2513d1debb5e8 100644 --- a/pkg/querier/queryrange/queryrange.proto +++ b/pkg/querier/queryrange/queryrange.proto @@ -183,6 +183,14 @@ message DetectedFieldsResponse { ]; } +message DetectedLabelsResponse { + logproto.DetectedLabelsResponse response = 1 [(gogoproto.customtype) = "github.com/grafana/loki/pkg/logproto.DetectedLabelsResponse"]; + repeated definitions.PrometheusResponseHeader Headers = 2 [ + (gogoproto.jsontag) = "-", + (gogoproto.customtype) = "github.com/grafana/loki/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" + ]; +} + message QueryResponse { google.rpc.Status status = 1; oneof response { @@ -196,6 +204,7 @@ message QueryResponse { QuantileSketchResponse quantileSketches = 9; ShardsResponse shardsResponse = 10; DetectedFieldsResponse detectedFields = 11; + DetectedLabelsResponse detectedLabels = 12; } } @@ -209,6 +218,7 @@ message QueryRequest { logproto.VolumeRequest volume = 6; indexgatewaypb.ShardsRequest shardsRequest = 8; logproto.DetectedFieldsRequest detectedFields = 9; + logproto.DetectedLabelsRequest detectedLabels = 10; } map metadata = 7 [(gogoproto.nullable) = false]; } diff --git a/pkg/querier/queryrange/roundtrip.go b/pkg/querier/queryrange/roundtrip.go index 3d1a5daf1afb4..fed95d0110aae 100644 --- a/pkg/querier/queryrange/roundtrip.go +++ b/pkg/querier/queryrange/roundtrip.go @@ -246,22 +246,23 @@ func NewMiddleware( statsRT = indexStatsTripperware.Wrap(next) seriesVolumeRT = seriesVolumeTripperware.Wrap(next) detectedFieldsRT = next //TODO(twhitney): add middlewares for detected fields + detectedLabelsRT = next // TODO(shantanu): add middlewares ) - return newRoundTripper(log, next, limitedRT, logFilterRT, metricRT, seriesRT, labelsRT, instantRT, statsRT, seriesVolumeRT, detectedFieldsRT, limits) + return newRoundTripper(log, next, limitedRT, logFilterRT, metricRT, seriesRT, labelsRT, instantRT, statsRT, seriesVolumeRT, detectedFieldsRT, detectedLabelsRT, limits) }), StopperWrapper{resultsCache, statsCache, volumeCache}, nil } type roundTripper struct { logger log.Logger - next, limited, log, metric, series, labels, instantMetric, indexStats, seriesVolume, detectedFields base.Handler + next, limited, log, metric, series, labels, instantMetric, indexStats, seriesVolume, detectedFields, detectedLabels base.Handler limits Limits } // newRoundTripper creates a new queryrange roundtripper -func newRoundTripper(logger log.Logger, next, limited, log, metric, series, labels, instantMetric, indexStats, seriesVolume, detectedFields base.Handler, limits Limits) roundTripper { +func newRoundTripper(logger log.Logger, next, limited, log, metric, series, labels, instantMetric, indexStats, seriesVolume, detectedFields, detectedLabels base.Handler, limits Limits) roundTripper { return roundTripper{ logger: logger, limited: limited, @@ -274,6 +275,7 @@ func newRoundTripper(logger log.Logger, next, limited, log, metric, series, labe indexStats: indexStats, seriesVolume: seriesVolume, detectedFields: detectedFields, + detectedLabels: detectedLabels, next: next, } } @@ -378,6 +380,7 @@ func (r roundTripper) Do(ctx context.Context, req base.Request) (base.Response, ) return r.detectedFields.Do(ctx, req) + // TODO(shantanu): Add DetectedLabels default: return r.next.Do(ctx, req) } @@ -412,6 +415,7 @@ const ( VolumeRangeOp = "volume_range" IndexShardsOp = "index_shards" DetectedFieldsOp = "detected_fields" + DetectedLabelsOp = "detected_labels" ) func getOperation(path string) string { @@ -434,6 +438,8 @@ func getOperation(path string) string { return IndexShardsOp case path == "/loki/api/v1/detected_fields": return DetectedFieldsOp + case path == "/loki/api/v1/detected_labels": + return DetectedLabelsOp default: return "" } diff --git a/pkg/querier/queryrange/roundtrip_test.go b/pkg/querier/queryrange/roundtrip_test.go index cd287a6ac4ab0..9996790a51147 100644 --- a/pkg/querier/queryrange/roundtrip_test.go +++ b/pkg/querier/queryrange/roundtrip_test.go @@ -1004,6 +1004,7 @@ func TestPostQueries(t *testing.T) { handler, handler, handler, + handler, fakeLimits{}, ).Do(ctx, lreq) require.NoError(t, err) diff --git a/pkg/querier/queryrange/stats.go b/pkg/querier/queryrange/stats.go index 029c6df720fa7..7cc2943fecaf4 100644 --- a/pkg/querier/queryrange/stats.go +++ b/pkg/querier/queryrange/stats.go @@ -37,6 +37,7 @@ const ( queryTypeVolume = "volume" queryTypeShards = "shards" queryTypeDetectedFields = "detected_fields" + queryTypeDetectedLabels = "detected_labels" ) var ( @@ -64,6 +65,8 @@ func recordQueryMetrics(data *queryData) { logql.RecordVolumeQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.params.QueryString(), data.params.Limit(), data.params.Step(), data.status, *data.statistics) case queryTypeDetectedFields: logql.RecordDetectedFieldsQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.params.QueryString(), data.status, *data.statistics) + case queryTypeDetectedLabels: + logql.RecordDetectedLabelsQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.params.QueryString(), data.status, *data.statistics) default: level.Error(logger).Log("msg", "failed to record query metrics", "err", fmt.Errorf("expected one of the *LokiRequest, *LokiInstantRequest, *LokiSeriesRequest, *LokiLabelNamesRequest, got %s", data.queryType)) } diff --git a/pkg/util/marshal/marshal.go b/pkg/util/marshal/marshal.go index 09a9d8ea8af6f..08c90a348c2b3 100644 --- a/pkg/util/marshal/marshal.go +++ b/pkg/util/marshal/marshal.go @@ -184,3 +184,13 @@ func WriteDetectedFieldsResponseJSON(r *logproto.DetectedFieldsResponse, w io.Wr s.WriteRaw("\n") return s.Flush() } + +// WriteDetectedLabelsResponseJSON marshals a logproto.DetectedLabelsResponse to JSON and then +// writes it to the provided io.Writer. +func WriteDetectedLabelsResponseJSON(r *logproto.DetectedLabelsResponse, w io.Writer) error { + s := jsoniter.ConfigFastest.BorrowStream(w) + defer jsoniter.ConfigFastest.ReturnStream(s) + s.WriteVal(r) + s.WriteRaw("\n") + return s.Flush() +}