Remove unused Value field (#9774)

We didn't end up needing the `Value` field because we can express
everything we need to as selectors
pull/9773/head^2
Travis Patterson 3 years ago committed by GitHub
parent a894c3ccf0
commit 4da0f63789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      pkg/ingester/ingester_test.go
  2. 12
      pkg/ingester/instance_test.go
  3. 327
      pkg/logproto/logproto.pb.go
  4. 1
      pkg/logproto/logproto.proto
  5. 4
      pkg/querier/http_test.go
  6. 4
      pkg/querier/ingester_querier_test.go
  7. 6
      pkg/querier/multi_tenant_querier_test.go
  8. 4
      pkg/querier/querier_test.go
  9. 25
      pkg/querier/queryrange/codec_test.go
  10. 4
      pkg/querier/queryrange/roundtrip_test.go
  11. 12
      pkg/querier/queryrange/split_by_interval_test.go
  12. 8
      pkg/storage/async_store_test.go
  13. 8
      pkg/storage/stores/composite_store_test.go
  14. 5
      pkg/storage/stores/index/seriesvolume/volume.go
  15. 37
      pkg/storage/stores/index/seriesvolume/volume_test.go
  16. 4
      pkg/storage/stores/shipper/indexgateway/gateway_test.go
  17. 10
      pkg/storage/stores/tsdb/index_client_test.go
  18. 16
      pkg/storage/stores/tsdb/single_file_index_test.go

@ -473,7 +473,7 @@ func (s *mockStore) Stats(_ context.Context, _ string, _, _ model.Time, _ ...*la
func (s *mockStore) SeriesVolume(_ context.Context, _ string, _, _ model.Time, limit int32, _ ...*labels.Matcher) (*logproto.VolumeResponse, error) {
return &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: limit,
}, nil
@ -1104,8 +1104,8 @@ func TestSeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{log_stream="worker"}`, Value: "", Volume: 70},
{Name: `{log_stream="dispatcher"}`, Volume: 90},
{Name: `{log_stream="worker"}`, Volume: 70},
}, volumes.Volumes)
})
@ -1119,8 +1119,8 @@ func TestSeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{host="agent", log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{host="agent", log_stream="worker"}`, Value: "", Volume: 70},
{Name: `{host="agent", log_stream="dispatcher"}`, Volume: 90},
{Name: `{host="agent", log_stream="worker"}`, Volume: 70},
}, volumes.Volumes)
})
@ -1134,8 +1134,8 @@ func TestSeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{host="agent", log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{host="agent", log_stream="worker"}`, Value: "", Volume: 70},
{Name: `{host="agent", log_stream="dispatcher"}`, Volume: 90},
{Name: `{host="agent", log_stream="worker"}`, Volume: 70},
}, volumes.Volumes)
})
}

@ -850,8 +850,8 @@ func TestInstance_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{host="agent", job="3", log_stream="worker"}`, Value: "", Volume: 70},
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Volume: 90},
{Name: `{host="agent", job="3", log_stream="worker"}`, Volume: 70},
}, volumes.Volumes)
})
@ -866,7 +866,7 @@ func TestInstance_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{log_stream="dispatcher"}`, Volume: 90},
}, volumes.Volumes)
})
@ -881,8 +881,8 @@ func TestInstance_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Value: "", Volume: 45},
{Name: `{host="agent", job="3", log_stream="worker"}`, Value: "", Volume: 26},
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Volume: 45},
{Name: `{host="agent", job="3", log_stream="worker"}`, Volume: 26},
}, volumes.Volumes)
})
@ -897,7 +897,7 @@ func TestInstance_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Value: "", Volume: 90},
{Name: `{host="agent", job="3", log_stream="dispatcher"}`, Volume: 90},
}, volumes.Volumes)
})
}

@ -2393,7 +2393,6 @@ func (m *VolumeResponse) GetLimit() int32 {
type Volume struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
Volume uint64 `protobuf:"varint,3,opt,name=volume,proto3" json:"volume"`
}
@ -2436,13 +2435,6 @@ func (m *Volume) GetName() string {
return ""
}
func (m *Volume) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *Volume) GetVolume() uint64 {
if m != nil {
return m.Volume
@ -2503,146 +2495,145 @@ func init() {
func init() { proto.RegisterFile("pkg/logproto/logproto.proto", fileDescriptor_c28a5f14f1f4c79a) }
var fileDescriptor_c28a5f14f1f4c79a = []byte{
// 2213 bytes of a gzipped FileDescriptorProto
// 2206 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x39, 0xcd, 0x6f, 0x1b, 0xc7,
0xf5, 0x1c, 0x72, 0x49, 0x91, 0x8f, 0xd4, 0x87, 0x47, 0x8c, 0xad, 0x1f, 0x6d, 0x93, 0xf2, 0x20,
0x3f, 0x5b, 0xb0, 0x1d, 0x32, 0x56, 0xda, 0xd4, 0xb1, 0x9b, 0x16, 0xa6, 0x14, 0x3b, 0xf2, 0x77,
0x46, 0xae, 0x0b, 0x04, 0x0d, 0x8c, 0x15, 0x39, 0xfc, 0x80, 0xb8, 0x5c, 0x7a, 0x77, 0x19, 0x47,
0x46, 0xae, 0x0b, 0x04, 0x0d, 0x8c, 0x15, 0x39, 0xfc, 0x80, 0xb9, 0x5c, 0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e, 0x4d, 0x7d,
0xfe, 0xbc, 0x9a, 0xfa, 0xf0, 0xf5, 0xaf, 0x7a, 0x4d, 0xd3, 0x27, 0xee, 0xe4, 0xc4, 0xcf, 0x5b,
0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x60, 0x34, 0x06, 0xed, 0x1b, 0x00, 0x00,
}
func (x Direction) String() string {
@ -4070,9 +4061,6 @@ func (this *Volume) Equal(that interface{}) bool {
if this.Name != that1.Name {
return false
}
if this.Value != that1.Value {
return false
}
if this.Volume != that1.Volume {
return false
}
@ -4647,10 +4635,9 @@ func (this *Volume) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s := make([]string, 0, 6)
s = append(s, "&logproto.Volume{")
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
s = append(s, "Volume: "+fmt.Sprintf("%#v", this.Volume)+",\n")
s = append(s, "}")
return strings.Join(s, "")
@ -7229,13 +7216,6 @@ func (m *Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x18
}
if len(m.Value) > 0 {
i -= len(m.Value)
copy(dAtA[i:], m.Value)
i = encodeVarintLogproto(dAtA, i, uint64(len(m.Value)))
i--
dAtA[i] = 0x12
}
if len(m.Name) > 0 {
i -= len(m.Name)
copy(dAtA[i:], m.Name)
@ -8103,10 +8083,6 @@ func (m *Volume) Size() (n int) {
if l > 0 {
n += 1 + l + sovLogproto(uint64(l))
}
l = len(m.Value)
if l > 0 {
n += 1 + l + sovLogproto(uint64(l))
}
if m.Volume != 0 {
n += 1 + sovLogproto(uint64(m.Volume))
}
@ -8711,7 +8687,6 @@ func (this *Volume) String() string {
}
s := strings.Join([]string{`&Volume{`,
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
`Volume:` + fmt.Sprintf("%v", this.Volume) + `,`,
`}`,
}, "")
@ -14405,38 +14380,6 @@ func (m *Volume) Unmarshal(dAtA []byte) error {
}
m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType)

@ -409,6 +409,5 @@ message VolumeResponse {
message Volume {
string name = 1 [(gogoproto.jsontag) = "name"];
string value = 2 [(gogoproto.jsontag) = "value"];
uint64 volume = 3 [(gogoproto.jsontag) = "volume"];
}

@ -206,7 +206,7 @@ func TestSeriesVolumeHandler(t *testing.T) {
t.Run("it returns label volumes from the querier", func(t *testing.T) {
ret := &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
From: t1,
Through: t2,
@ -236,7 +236,7 @@ func TestSeriesVolumeHandler(t *testing.T) {
require.Equal(
t,
fmt.Sprintf(
`{"volumes":[{"name":"{foo=\"bar\"}","value":"","volume":38}],"from":%s,"through":%s}`,
`{"volumes":[{"name":"{foo=\"bar\"}","volume":38}],"from":%s,"through":%s}`,
t1, t2,
),
strings.TrimSpace(w.Body.String()),

@ -349,7 +349,7 @@ func TestIngesterQuerier_SeriesVolume(t *testing.T) {
t.Run("it gets label volumes from all the ingesters", func(t *testing.T) {
ret := &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 10,
}
@ -369,7 +369,7 @@ func TestIngesterQuerier_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 76},
{Name: `{foo="bar"}`, Volume: 76},
}, volumes.Volumes)
})

@ -419,7 +419,7 @@ func TestSeriesVolume(t *testing.T) {
desc: "multiple tenants are aggregated",
orgID: "1|2",
expectedSeriesVolumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 76},
{Name: `{foo="bar"}`, Volume: 76},
},
},
@ -427,7 +427,7 @@ func TestSeriesVolume(t *testing.T) {
desc: "single tenant",
orgID: "2",
expectedSeriesVolumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
},
} {
@ -481,7 +481,7 @@ func mockLabelValueRequest() *logproto.VolumeRequest {
func mockLabelValueResponse() *logproto.VolumeResponse {
return &logproto.VolumeResponse{Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 10,
}

@ -969,7 +969,7 @@ func TestQuerier_RequestingIngesters(t *testing.T) {
func TestQuerier_LabeleVolumes(t *testing.T) {
t.Run("it returns label volumes from the store", func(t *testing.T) {
ret := &logproto.VolumeResponse{Volumes: []logproto.Volume{
{Name: "foo", Value: "bar", Volume: 38},
{Name: "foo", Volume: 38},
}}
limits, err := validation.NewOverrides(defaultLimitsTestConfig(), nil)
@ -986,7 +986,7 @@ func TestQuerier_LabeleVolumes(t *testing.T) {
ctx := user.InjectOrgID(context.Background(), "test")
resp, err := querier.SeriesVolume(ctx, req)
require.NoError(t, err)
require.Equal(t, []logproto.Volume{{Name: "foo", Value: "bar", Volume: 38}}, resp.Volumes)
require.Equal(t, []logproto.Volume{{Name: "foo", Volume: 38}}, resp.Volumes)
})
}

@ -260,12 +260,12 @@ func Test_codec_DecodeResponse(t *testing.T) {
}, false,
},
{
"label volume", &http.Response{StatusCode: 200, Body: io.NopCloser(strings.NewReader(labelVolumeString))},
"label volume", &http.Response{StatusCode: 200, Body: io.NopCloser(strings.NewReader(seriesVolumeString))},
&logproto.VolumeRequest{},
&VolumeResponse{
Response: &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 100,
},
@ -518,17 +518,17 @@ func Test_codec_EncodeResponse(t *testing.T) {
}, indexStatsString, false,
},
{
"label volume",
"series volume",
&VolumeResponse{
Response: &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 100,
From: 0,
Through: 0,
},
}, labelVolumeString, false,
}, seriesVolumeString, false,
},
}
for _, tt := range tests {
@ -1026,12 +1026,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 150,
},
{
Name: `{job="loki"}`,
Value: "",
Volume: 300,
},
},
@ -1045,12 +1043,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 100,
},
{
Name: `{job="loki"}`,
Value: "",
Volume: 200,
},
},
@ -1086,12 +1082,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 150,
},
{
Name: `{job="loki"}`,
Value: "",
Volume: 300,
},
},
@ -1105,12 +1099,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 100,
},
{
Name: `{job="loki"}`,
Value: "",
Volume: 200,
},
},
@ -1144,12 +1136,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 150,
},
{
Name: `{cluster="dev"}`,
Value: "",
Volume: 300,
},
},
@ -1163,12 +1153,10 @@ func Test_codec_MergeResponse_Volume(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: `{job="prometheus"}`,
Value: "",
Volume: 100,
},
{
Name: `{cluster="dev"}`,
Value: "",
Volume: 200,
},
},
@ -1428,14 +1416,13 @@ var (
"bytes": 3,
"entries": 4
}`
labelVolumeString = `{
seriesVolumeString = `{
"from": 0,
"limit": 100,
"through": 0,
"volumes": [
{
"name": "{foo=\"bar\"}",
"value": "",
"volume": 38
}
]

@ -132,8 +132,8 @@ var (
seriesVolume = logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 1024},
{Name: `{bar="baz"}`, Value: "", Volume: 3350},
{Name: `{foo="bar"}`, Volume: 1024},
{Name: `{bar="baz"}`, Volume: 3350},
},
From: model.TimeFromUnix(testTime.Add(-4 * time.Hour).Unix()),
Through: model.TimeFromUnix(testTime.Add(-1 * time.Hour).Unix()),

@ -872,8 +872,8 @@ func Test_seriesvolume_splitByInterval_Do(t *testing.T) {
return &VolumeResponse{
Response: &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{bar="baz"}`, Value: "", Volume: 28},
{Name: `{foo="bar"}`, Volume: 38},
{Name: `{bar="baz"}`, Volume: 28},
},
From: from,
Through: through,
@ -912,10 +912,10 @@ func Test_seriesvolume_splitByInterval_Do(t *testing.T) {
return &VolumeResponse{
Response: &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{bar="baz"}`, Value: "", Volume: 28},
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{fizz="buzz"}`, Value: "", Volume: 28},
{Name: `{foo="bar"}`, Volume: 38},
{Name: `{bar="baz"}`, Volume: 28},
{Name: `{foo="bar"}`, Volume: 38},
{Name: `{fizz="buzz"}`, Volume: 28},
},
From: from,
Through: through,

@ -315,7 +315,7 @@ func TestSeriesVolume(t *testing.T) {
store.On("SeriesVolume", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(
&logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 10,
}, nil)
@ -323,7 +323,7 @@ func TestSeriesVolume(t *testing.T) {
ingesterQuerier := newIngesterQuerierMock()
ingesterQuerier.On("SeriesVolume", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(&logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{bar="baz"}`, Value: "", Volume: 38},
{Name: `{bar="baz"}`, Volume: 38},
},
Limit: 10,
}, nil)
@ -339,8 +339,8 @@ func TestSeriesVolume(t *testing.T) {
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{bar="baz"}`, Value: "", Volume: 38},
{Name: `{foo="bar"}`, Value: "", Volume: 38},
{Name: `{bar="baz"}`, Volume: 38},
{Name: `{foo="bar"}`, Volume: 38},
},
Limit: 10,
}, vol)

@ -314,24 +314,24 @@ func TestSeriesVolume(t *testing.T) {
cs := compositeStore{
stores: []compositeStoreEntry{
{model.TimeFromUnix(10), mockStoreSeriesVolume{mockStore: mockStore(0), value: &logproto.VolumeResponse{
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Value: "", Volume: 15}}, Limit: 10,
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Volume: 15}}, Limit: 10,
}}},
{model.TimeFromUnix(20), mockStoreSeriesVolume{mockStore: mockStore(1), value: &logproto.VolumeResponse{
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Value: "", Volume: 30}}, Limit: 10,
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Volume: 30}}, Limit: 10,
}}},
},
}
volumes, err := cs.SeriesVolume(context.Background(), "fake", 10001, 20001, 10, nil)
require.NoError(t, err)
require.Equal(t, []logproto.Volume{{Name: `{foo="bar"}`, Value: "", Volume: 45}}, volumes.Volumes)
require.Equal(t, []logproto.Volume{{Name: `{foo="bar"}`, Volume: 45}}, volumes.Volumes)
})
t.Run("it returns an error if any store returns an error", func(t *testing.T) {
cs := compositeStore{
stores: []compositeStoreEntry{
{model.TimeFromUnix(10), mockStoreSeriesVolume{mockStore: mockStore(0), value: &logproto.VolumeResponse{
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Value: "", Volume: 15}}, Limit: 10,
Volumes: []logproto.Volume{{Name: `{foo="bar"}`, Volume: 15}}, Limit: 10,
}}},
{model.TimeFromUnix(20), mockStoreSeriesVolume{mockStore: mockStore(1), err: errors.New("something bad")}},
},

@ -79,17 +79,12 @@ func MapToSeriesVolumeResponse(mergedVolumes map[string]uint64, limit int, from,
for name, size := range mergedVolumes {
volumes = append(volumes, logproto.Volume{
Name: name,
Value: "",
Volume: size,
})
}
sort.Slice(volumes, func(i, j int) bool {
if volumes[i].Volume == volumes[j].Volume {
if volumes[i].Name == volumes[j].Name {
return volumes[i].Value < volumes[j].Value
}
return volumes[i].Name < volumes[j].Name
}

@ -30,22 +30,18 @@ func Test_AddVolumes(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{job: \"prometheus\"}",
Value: "",
Volume: 10,
},
{
Name: "{job: \"loki\"}",
Value: "",
Volume: 5,
},
},
@ -61,22 +57,18 @@ func Test_AddVolumes(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 100,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 50,
},
{
Name: "{job: \"prometheus\"}",
Value: "",
Volume: 20,
},
{
Name: "{job: \"loki\"}",
Value: "",
Volume: 10,
},
},
@ -95,22 +87,18 @@ func Test_AddVolumes(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{job: \"prometheus\"}",
Value: "",
Volume: 10,
},
{
Name: "{job: \"loki\"}",
Value: "",
Volume: 5,
},
},
@ -141,12 +129,10 @@ func Test_AddVolumes(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{job: \"prometheus\"}",
Value: "",
Volume: 40,
},
{
Name: "{job: \"loki\"}",
Value: "",
Volume: 25,
},
},
@ -165,12 +151,10 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -180,17 +164,14 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{job: \"foo\"}",
Value: "",
Volume: 15,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -204,17 +185,14 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 100,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 50,
},
{
Name: "{job: \"foo\"}",
Value: "",
Volume: 15,
},
},
@ -231,12 +209,10 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -246,17 +222,14 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{job: \"foo\"}",
Value: "",
Volume: 15,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -270,12 +243,10 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 100,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 50,
},
},
@ -296,12 +267,10 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -313,17 +282,14 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 25,
},
{
Name: "{job: \"foo\"}",
Value: "",
Volume: 15,
},
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 50,
},
},
@ -339,17 +305,14 @@ func Test_Merge(t *testing.T) {
Volumes: []logproto.Volume{
{
Name: "{cluster: \"prod\"}",
Value: "",
Volume: 100,
},
{
Name: "{cluster: \"dev\"}",
Value: "",
Volume: 50,
},
{
Name: "{job: \"foo\"}",
Value: "",
Volume: 15,
},
},

@ -248,7 +248,7 @@ func TestGateway_QueryIndex_multistore(t *testing.T) {
func TestSeriesVolume(t *testing.T) {
indexQuerier := newIngesterQuerierMock()
indexQuerier.On("SeriesVolume", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(&logproto.VolumeResponse{Volumes: []logproto.Volume{
{Name: "bar", Value: "baz", Volume: 38},
{Name: "bar", Volume: 38},
}}, nil)
gateway, err := NewIndexGateway(Config{}, util_log.Logger, nil, indexQuerier, nil)
@ -259,7 +259,7 @@ func TestSeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{Volumes: []logproto.Volume{
{Name: "bar", Value: "baz", Volume: 38},
{Name: "bar", Volume: 38},
}}, vol)
}

@ -280,10 +280,10 @@ func TestIndexClient_SeriesVolume(t *testing.T) {
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 200 * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Value: "", Volume: 100 * 1024},
{Name: `{fizz="buzz"}`, Value: "", Volume: 100 * 1024},
{Name: `{ping="pong"}`, Value: "", Volume: 100 * 1024},
{Name: `{foo="bar"}`, Volume: 200 * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Volume: 100 * 1024},
{Name: `{fizz="buzz"}`, Volume: 100 * 1024},
{Name: `{ping="pong"}`, Volume: 100 * 1024},
},
Limit: 10,
From: from,
@ -297,7 +297,7 @@ func TestIndexClient_SeriesVolume(t *testing.T) {
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: 200 * 1024},
{Name: `{foo="bar"}`, Volume: 200 * 1024},
},
Limit: 1,
From: from,

@ -431,8 +431,8 @@ func TestTSDBIndex_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{fizz="fizz", foo="bar"}`, Value: "", Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Value: "", Volume: (10 + 20) * 1024},
{Name: `{fizz="fizz", foo="bar"}`, Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Volume: (10 + 20) * 1024},
},
Limit: 10,
From: from,
@ -450,8 +450,8 @@ func TestTSDBIndex_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{fizz="fizz", foo="bar"}`, Value: "", Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Value: "", Volume: (10 + 20) * 1024},
{Name: `{fizz="fizz", foo="bar"}`, Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Volume: (10 + 20) * 1024},
},
Limit: 10,
From: from,
@ -479,7 +479,7 @@ func TestTSDBIndex_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{foo="bar"}`, Value: "", Volume: (10 + 20 + 30 + 40) * 1024},
{Name: `{foo="bar"}`, Volume: (10 + 20 + 30 + 40) * 1024},
},
Limit: 10,
From: from,
@ -497,8 +497,8 @@ func TestTSDBIndex_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{fizz="fizz", foo="bar"}`, Value: "", Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Value: "", Volume: (10 + 20) * 1024},
{Name: `{fizz="fizz", foo="bar"}`, Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Volume: (10 + 20) * 1024},
},
Limit: 10,
From: from,
@ -516,7 +516,7 @@ func TestTSDBIndex_SeriesVolume(t *testing.T) {
require.NoError(t, err)
require.Equal(t, &logproto.VolumeResponse{
Volumes: []logproto.Volume{
{Name: `{fizz="fizz", foo="bar"}`, Value: "", Volume: (30 + 40) * 1024},
{Name: `{fizz="fizz", foo="bar"}`, Volume: (30 + 40) * 1024},
{Name: `{fizz="buzz", foo="bar"}`, Volume: (10 + 20) * 1024},
},
Limit: 10,

Loading…
Cancel
Save