Expose optional label matcher for label values handler (#8824)

pull/8967/head
Periklis Tsirakidis 3 years ago committed by GitHub
parent b97525a448
commit 1bcf683513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 3
      docs/sources/api/_index.md
  3. 11
      pkg/ingester/ingester.go
  4. 2
      pkg/loghttp/labels.go
  5. 319
      pkg/logproto/logproto.pb.go
  6. 1
      pkg/logproto/logproto.proto
  7. 3
      pkg/logql/metrics.go
  8. 4
      pkg/logql/metrics_test.go
  9. 2
      pkg/querier/http.go
  10. 11
      pkg/querier/querier.go
  11. 6
      pkg/querier/queryrange/codec.go
  12. 35
      pkg/querier/queryrange/codec_test.go
  13. 179
      pkg/querier/queryrange/queryrange.pb.go
  14. 1
      pkg/querier/queryrange/queryrange.proto
  15. 2
      pkg/querier/queryrange/roundtrip.go
  16. 1
      pkg/querier/queryrange/split_by_interval.go
  17. 2
      pkg/querier/queryrange/stats.go
  18. 26
      pkg/storage/stores/series/series_store_test.go

@ -19,6 +19,7 @@
##### Enhancements
* [8824](https://github.com/grafana/loki/pull/8824) **periklis**: Expose optional label matcher for label values handler
* [8852](https://github.com/grafana/loki/pull/8852) **wtchangdm**: Loki: Add `route_randomly` to Redis options.
* [8848](https://github.com/grafana/loki/pull/8848) **dannykopping**: Ruler: add configurable rule evaluation jitter.
* [8752](https://github.com/grafana/loki/pull/8752) **chaudum**: Add query fairness control across actors within a tenant to scheduler, which can be enabled by passing the `X-Loki-Actor-Path` header to the HTTP request of the query.

@ -483,6 +483,7 @@ It accepts the following query parameters in the URL:
- `start`: The start time for the query as a nanosecond Unix epoch. Defaults to 6 hours ago.
- `end`: The end time for the query as a nanosecond Unix epoch. Defaults to now.
- `since`: A `duration` used to calculate `start` relative to `end`. If `end` is in the future, `start` is calculated as this duration before now. Any value specified for `start` supersedes this parameter.
- `query`: A set of log stream selector that selects the streams to match and return label values for `<name>`. Example: `{"app": "myapp", "environment": "dev"}`
In microservices mode, `/loki/api/v1/label/<name>/values` is exposed by the querier.
@ -1412,4 +1413,4 @@ $ curl -H "Content-Type: application/json" -XPOST -s "https://localhost:3100/api
This is helpful for scaling down WAL-enabled ingesters where we want to ensure old WAL directories are not orphaned,
but instead flushed to our chunk backend.
In microservices mode, the `/ingester/flush_shutdown` endpoint is exposed by the ingester.
In microservices mode, the `/ingester/flush_shutdown` endpoint is exposed by the ingester.

@ -843,7 +843,16 @@ func (i *Ingester) Label(ctx context.Context, req *logproto.LabelRequest) (*logp
if err != nil {
return nil, err
}
resp, err := instance.Label(ctx, req)
var matchers []*labels.Matcher
if req.Query != "" {
matchers, err = syntax.ParseMatchers(req.Query)
if err != nil {
return nil, err
}
}
resp, err := instance.Label(ctx, req, matchers...)
if err != nil {
return nil, err
}

@ -82,5 +82,7 @@ func ParseLabelQuery(r *http.Request) (*logproto.LabelRequest, error) {
}
req.Start = &start
req.End = &end
req.Query = query(r)
return req, nil
}

@ -525,6 +525,7 @@ type LabelRequest struct {
Values bool `protobuf:"varint,2,opt,name=values,proto3" json:"values,omitempty"`
Start *time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start,omitempty"`
End *time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end,omitempty"`
Query string `protobuf:"bytes,5,opt,name=query,proto3" json:"query,omitempty"`
}
func (m *LabelRequest) Reset() { *m = LabelRequest{} }
@ -587,6 +588,13 @@ func (m *LabelRequest) GetEnd() *time.Time {
return nil
}
func (m *LabelRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
type LabelResponse struct {
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
@ -2319,138 +2327,139 @@ func init() {
func init() { proto.RegisterFile("pkg/logproto/logproto.proto", fileDescriptor_c28a5f14f1f4c79a) }
var fileDescriptor_c28a5f14f1f4c79a = []byte{
// 2091 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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, 0xf8, 0x9b, 0x0e, 0x73, 0xf0, 0x3d, 0x58, 0x12,
0x5c, 0x87, 0x8f, 0xfc, 0x53, 0xde, 0x75, 0xe8, 0x3f, 0x0a, 0x53, 0xde, 0x75, 0xf8, 0x3f, 0x0b,
0x76, 0xa2, 0xf9, 0xc1, 0xb3, 0xe7, 0xd5, 0xc4, 0xa7, 0xcf, 0xab, 0x89, 0xcf, 0x9e, 0x57, 0xd1,
0xcf, 0xf6, 0xab, 0xe8, 0xb7, 0xfb, 0x55, 0xf4, 0x74, 0xbf, 0x8a, 0x9e, 0xed, 0x57, 0xd1, 0xbf,
0xf7, 0xab, 0xe8, 0x3f, 0xfb, 0xd5, 0xc4, 0x67, 0xfb, 0x55, 0xf4, 0xc9, 0x8b, 0x6a, 0xe2, 0xd9,
0x8b, 0x6a, 0xe2, 0xd3, 0x17, 0xd5, 0xc4, 0x07, 0xaf, 0x7f, 0xde, 0xd3, 0x87, 0xbe, 0x71, 0x27,
0x23, 0x7e, 0xde, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x75, 0x18, 0x31, 0x82, 0x19,
0x00, 0x00,
}
func (x Direction) String() string {
@ -2774,6 +2783,9 @@ func (this *LabelRequest) Equal(that interface{}) bool {
} else if !this.End.Equal(*that1.End) {
return false
}
if this.Query != that1.Query {
return false
}
return true
}
func (this *LabelResponse) Equal(that interface{}) bool {
@ -3885,12 +3897,13 @@ func (this *LabelRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s := make([]string, 0, 9)
s = append(s, "&logproto.LabelRequest{")
s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n")
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, "")
}
@ -5322,6 +5335,13 @@ func (m *LabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = 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] = 0x2a
}
if m.End != nil {
n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.End):])
if err7 != nil {
@ -6905,6 +6925,10 @@ func (m *LabelRequest) Size() (n int) {
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
}
@ -7630,6 +7654,7 @@ func (this *LabelRequest) String() string {
`Values:` + fmt.Sprintf("%v", this.Values) + `,`,
`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
@ -9341,6 +9366,38 @@ func (m *LabelRequest) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
case 5:
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:])

@ -119,6 +119,7 @@ message LabelRequest {
(gogoproto.stdtime) = true,
(gogoproto.nullable) = true
];
string query = 5; // Naming this query instead of match because this should be with queryrangebase.Request interface
}
message LabelResponse {

@ -177,7 +177,7 @@ func RecordLabelQueryMetrics(
ctx context.Context,
log log.Logger,
start, end time.Time,
label, status string,
label, query, status string,
stats logql_stats.Result,
) {
var (
@ -199,6 +199,7 @@ func RecordLabelQueryMetrics(
"duration", time.Duration(int64(stats.Summary.ExecTime*float64(time.Second))),
"status", status,
"label", label,
"query", query,
"splits", stats.Summary.Splits,
"throughput", strings.Replace(humanize.Bytes(uint64(stats.Summary.BytesProcessedPerSecond)), " ", "", 1),
"total_bytes", strings.Replace(humanize.Bytes(uint64(stats.Summary.TotalBytesProcessed)), " ", "", 1),

@ -101,7 +101,7 @@ func TestLogLabelsQuery(t *testing.T) {
sp := opentracing.StartSpan("")
ctx := opentracing.ContextWithSpan(user.InjectOrgID(context.Background(), "foo"), sp)
now := time.Now()
RecordLabelQueryMetrics(ctx, logger, now.Add(-1*time.Hour), now, "foo", "200", stats.Result{
RecordLabelQueryMetrics(ctx, logger, now.Add(-1*time.Hour), now, "foo", "", "200", stats.Result{
Summary: stats.Summary{
BytesProcessedPerSecond: 100000,
ExecTime: 25.25,
@ -111,7 +111,7 @@ func TestLogLabelsQuery(t *testing.T) {
})
require.Equal(t,
fmt.Sprintf(
"level=info org_id=foo traceID=%s latency=slow query_type=labels length=1h0m0s duration=25.25s status=200 label=foo splits=0 throughput=100kB total_bytes=100kB total_entries=12\n",
"level=info org_id=foo traceID=%s latency=slow query_type=labels length=1h0m0s duration=25.25s status=200 label=foo query= splits=0 throughput=100kB total_bytes=100kB total_entries=12\n",
sp.Context().(jaeger.SpanContext).SpanID().String(),
),
buf.String())

@ -222,7 +222,7 @@ func (q *QuerierAPI) LabelHandler(w http.ResponseWriter, r *http.Request) {
status, _ = server.ClientHTTPStatusAndError(err)
}
logql.RecordLabelQueryMetrics(ctx, log, *req.Start, *req.End, req.Name, strconv.Itoa(status), statResult)
logql.RecordLabelQueryMetrics(ctx, log, *req.Start, *req.End, req.Name, req.Query, strconv.Itoa(status), statResult)
if err != nil {
serverutil.WriteError(err, w)

@ -11,6 +11,7 @@ import (
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc/health/grpc_health_v1"
@ -364,6 +365,14 @@ func (q *SingleTenantQuerier) Label(ctx context.Context, req *logproto.LabelRequ
return nil, err
}
var matchers []*labels.Matcher
if req.Query != "" {
matchers, err = syntax.ParseMatchers(req.Query)
if err != nil {
return nil, err
}
}
// Enforce the query timeout while querying backends
queryTimeout := q.limits.QueryTimeout(ctx, userID)
// TODO: remove this clause once we remove the deprecated query-timeout flag.
@ -401,7 +410,7 @@ func (q *SingleTenantQuerier) Label(ctx context.Context, req *logproto.LabelRequ
)
if req.Values {
storeValues, err = q.store.LabelValuesForMetricName(ctx, userID, from, through, "logs", req.Name)
storeValues, err = q.store.LabelValuesForMetricName(ctx, userID, from, through, "logs", req.Name, matchers...)
} else {
storeValues, err = q.store.LabelNamesForMetricName(ctx, userID, from, through, "logs")
}

@ -187,10 +187,6 @@ func (r *LokiLabelNamesRequest) WithQuery(query string) queryrangebase.Request {
return &new
}
func (r *LokiLabelNamesRequest) GetQuery() string {
return ""
}
func (r *LokiLabelNamesRequest) GetStep() int64 {
return 0
}
@ -260,6 +256,7 @@ func (Codec) DecodeRequest(_ context.Context, r *http.Request, forwardHeaders []
StartTs: *req.Start,
EndTs: *req.End,
Path: r.URL.Path,
Query: req.Query,
}, nil
case IndexStatsOp:
req, err := loghttp.ParseIndexStatsQuery(r)
@ -346,6 +343,7 @@ func (Codec) EncodeRequest(ctx context.Context, r queryrangebase.Request) (*http
params := url.Values{
"start": []string{fmt.Sprintf("%d", request.StartTs.UnixNano())},
"end": []string{fmt.Sprintf("%d", request.EndTs.UnixNano())},
"query": []string{request.GetQuery()},
}
u := &url.URL{

@ -7,6 +7,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
strings "strings"
"testing"
"time"
@ -80,6 +81,15 @@ func Test_codec_DecodeRequest(t *testing.T) {
StartTs: start,
EndTs: end,
}, false},
{"label_values", func() (*http.Request, error) {
return http.NewRequest(http.MethodGet,
fmt.Sprintf(`/label/test/values?start=%d&end=%d&query={foo="bar"}`, start.UnixNano(), end.UnixNano()), nil)
}, &LokiLabelNamesRequest{
Path: "/label/test/values",
StartTs: start,
EndTs: end,
Query: `{foo="bar"}`,
}, false},
{"index_stats", func() (*http.Request, error) {
return LokiCodec.EncodeRequest(context.Background(), &logproto.IndexStatsRequest{
From: model.TimeFromUnixNano(start.UnixNano()),
@ -334,6 +344,7 @@ func Test_codec_labels_EncodeRequest(t *testing.T) {
Path: "/loki/api/v1/labels/__name__/values",
StartTs: start,
EndTs: end,
Query: `{foo="bar"}`,
}
got, err = LokiCodec.EncodeRequest(ctx, toEncode)
require.NoError(t, err)
@ -341,13 +352,37 @@ func Test_codec_labels_EncodeRequest(t *testing.T) {
require.Equal(t, "/loki/api/v1/labels/__name__/values", got.URL.Path)
require.Equal(t, fmt.Sprintf("%d", start.UnixNano()), got.URL.Query().Get("start"))
require.Equal(t, fmt.Sprintf("%d", end.UnixNano()), got.URL.Query().Get("end"))
require.Equal(t, `{foo="bar"}`, got.URL.Query().Get("query"))
// testing a full roundtrip
req, err = LokiCodec.DecodeRequest(context.TODO(), got, nil)
require.NoError(t, err)
require.Equal(t, toEncode.StartTs, req.(*LokiLabelNamesRequest).StartTs)
require.Equal(t, toEncode.EndTs, req.(*LokiLabelNamesRequest).EndTs)
require.Equal(t, toEncode.Query, req.(*LokiLabelNamesRequest).Query)
require.Equal(t, "/loki/api/v1/labels/__name__/values", req.(*LokiLabelNamesRequest).Path)
}
func Test_codec_labels_DecodeRequest(t *testing.T) {
ctx := context.Background()
u, err := url.Parse(`/loki/api/v1/labels/__name__/values?start=1575285010000000010&end=1575288610000000010&query={foo="bar"}`)
require.NoError(t, err)
r := &http.Request{URL: u}
req, err := LokiCodec.DecodeRequest(context.TODO(), r, nil)
require.NoError(t, err)
require.Equal(t, start, req.(*LokiLabelNamesRequest).StartTs)
require.Equal(t, end, req.(*LokiLabelNamesRequest).EndTs)
require.Equal(t, `{foo="bar"}`, req.(*LokiLabelNamesRequest).Query)
require.Equal(t, "/loki/api/v1/labels/__name__/values", req.(*LokiLabelNamesRequest).Path)
got, err := LokiCodec.EncodeRequest(ctx, req)
require.NoError(t, err)
require.Equal(t, ctx, got.Context())
require.Equal(t, "/loki/api/v1/labels/__name__/values", got.URL.Path)
require.Equal(t, fmt.Sprintf("%d", start.UnixNano()), got.URL.Query().Get("start"))
require.Equal(t, fmt.Sprintf("%d", end.UnixNano()), got.URL.Query().Get("end"))
require.Equal(t, `{foo="bar"}`, got.URL.Query().Get("query"))
}
func Test_codec_index_stats_EncodeRequest(t *testing.T) {

@ -474,6 +474,7 @@ type LokiLabelNamesRequest struct {
StartTs time.Time `protobuf:"bytes,1,opt,name=startTs,proto3,stdtime" json:"startTs"`
EndTs time.Time `protobuf:"bytes,2,opt,name=endTs,proto3,stdtime" json:"endTs"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
}
func (m *LokiLabelNamesRequest) Reset() { *m = LokiLabelNamesRequest{} }
@ -529,6 +530,13 @@ func (m *LokiLabelNamesRequest) GetPath() string {
return ""
}
func (m *LokiLabelNamesRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
type LokiLabelNamesResponse struct {
Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"`
Data []string `protobuf:"bytes,2,rep,name=Data,proto3" json:"data,omitempty"`
@ -748,69 +756,70 @@ func init() {
}
var fileDescriptor_51b9d53b40d11902 = []byte{
// 992 bytes of a gzipped FileDescriptorProto
// 999 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xdd, 0x6e, 0x23, 0xb5,
0x17, 0x8f, 0xf3, 0x1d, 0xf7, 0xbf, 0xfd, 0x83, 0x5b, 0x76, 0x47, 0x05, 0xcd, 0x44, 0x91, 0x60,
0x83, 0x04, 0x13, 0xd1, 0xe5, 0x43, 0x7c, 0x08, 0xb1, 0x43, 0x41, 0x54, 0x5a, 0x21, 0x34, 0x9b,
0x17, 0x70, 0x3a, 0xee, 0x64, 0xe8, 0x7c, 0xd5, 0xf6, 0xac, 0xe8, 0x1d, 0x0f, 0x00, 0xd2, 0x3e,
0x05, 0x20, 0xc1, 0x13, 0xf0, 0x04, 0xbd, 0xec, 0xe5, 0xaa, 0x12, 0x03, 0x4d, 0x6f, 0x20, 0x57,
0x7d, 0x04, 0x64, 0x7b, 0x26, 0x71, 0xba, 0x6d, 0xb7, 0xe9, 0xde, 0xec, 0x05, 0x37, 0xc9, 0x39,
0xc7, 0xe7, 0x67, 0xfb, 0xfc, 0xce, 0xef, 0x38, 0x81, 0x77, 0xd3, 0x3d, 0x7f, 0xb0, 0x9f, 0x11,
0x1a, 0x10, 0x2a, 0xbf, 0x0f, 0x28, 0x8e, 0x7d, 0xa2, 0x99, 0x76, 0x4a, 0x13, 0x9e, 0x20, 0x38,
0x8f, 0x6c, 0xac, 0xfb, 0x89, 0x9f, 0xc8, 0xf0, 0x40, 0x58, 0x2a, 0x63, 0xc3, 0xf2, 0x93, 0xc4,
0x0f, 0xc9, 0x40, 0x7a, 0xa3, 0x6c, 0x77, 0xc0, 0x83, 0x88, 0x30, 0x8e, 0xa3, 0xb4, 0x48, 0x78,
0x55, 0x9c, 0x15, 0x26, 0xbe, 0x42, 0x96, 0x46, 0xb1, 0xd8, 0x2d, 0x16, 0xf7, 0xc3, 0x28, 0xf1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xec, 0x82, 0xfe, 0xea, 0xe6, 0x9a, 0x5d, 0x9e, 0xdf, 0x56, 0x31,
0xe4, 0xce, 0xb3, 0x44, 0x79, 0x09, 0xe6, 0x13, 0xa3, 0x25, 0x99, 0x90, 0x36, 0xea, 0xc1, 0x26,
0x9b, 0x60, 0xea, 0x31, 0xa3, 0xdd, 0xad, 0xf5, 0x3b, 0x0e, 0x9c, 0x65, 0x56, 0x1e, 0x71, 0xf3,
0x6f, 0xef, 0x1f, 0x00, 0x91, 0xa0, 0x74, 0x3b, 0x62, 0x1c, 0x47, 0xfc, 0x26, 0xcc, 0x7e, 0x02,
0x9b, 0x42, 0x79, 0x43, 0x26, 0xb9, 0xbd, 0x6e, 0xa9, 0x39, 0x66, 0xb1, 0xd6, 0xfa, 0x52, 0xb5,
0x36, 0x2e, 0xac, 0xb5, 0x79, 0x69, 0xad, 0xbf, 0xd4, 0xe1, 0xff, 0x94, 0x7c, 0x58, 0x12, 0x47,
0x8c, 0x08, 0xd0, 0x43, 0x8e, 0x79, 0xca, 0x54, 0x99, 0x39, 0x48, 0x46, 0xdc, 0x7c, 0x04, 0x7d,
0x06, 0xeb, 0x5b, 0x98, 0x63, 0x59, 0xf2, 0xca, 0xe6, 0xba, 0xad, 0x89, 0x52, 0xcc, 0x25, 0xc6,
0x9c, 0xdb, 0xa2, 0xaa, 0x59, 0x66, 0xad, 0x7a, 0x98, 0xe3, 0xb7, 0xe2, 0xd0, 0xe7, 0x24, 0x4c,
0xf8, 0x81, 0x2b, 0x91, 0xe8, 0x3d, 0xd8, 0xf9, 0x82, 0xd2, 0x98, 0x0e, 0x0f, 0x12, 0x22, 0x29,
0xea, 0x38, 0x77, 0x66, 0x99, 0xb5, 0x46, 0x8a, 0xa0, 0x86, 0x98, 0x67, 0xa2, 0x37, 0x61, 0x43,
0x3a, 0x92, 0x94, 0x8e, 0xb3, 0x36, 0xcb, 0xac, 0xff, 0x4b, 0x88, 0x96, 0xae, 0x32, 0x16, 0x39,
0x6c, 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23, 0x8f, 0x7c, 0x27, 0xc4, 0x37, 0xd7, 0x69, 0xfa, 0xd4, 0x8e, 0x5e, 0x9b, 0x93, 0xf2,
0x74, 0xbe, 0xf3, 0xf1, 0x71, 0x66, 0x7d, 0x70, 0x15, 0x2b, 0x57, 0x80, 0xb5, 0x12, 0x74, 0xe1,
0x56, 0x5f, 0x78, 0xe1, 0x3a, 0xef, 0x1e, 0x9d, 0x98, 0x95, 0x27, 0x27, 0x66, 0xe5, 0xec, 0xc4,
0x04, 0xdf, 0x4f, 0x4d, 0xf0, 0xf3, 0xd4, 0x04, 0x87, 0x53, 0x13, 0x1c, 0x4d, 0x4d, 0xf0, 0xd7,
0xd4, 0x04, 0x7f, 0x4f, 0xcd, 0xca, 0xd9, 0xd4, 0x04, 0x8f, 0x4f, 0xcd, 0xca, 0xd1, 0xa9, 0x59,
0x79, 0x72, 0x6a, 0x56, 0x46, 0x4d, 0x49, 0xc4, 0xbd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x02,
0x7e, 0x3a, 0x1c, 0x00, 0x0d, 0x00, 0x00,
}
func (this *LokiRequest) Equal(that interface{}) bool {
@ -1083,6 +1092,9 @@ func (this *LokiLabelNamesRequest) Equal(that interface{}) bool {
if this.Path != that1.Path {
return false
}
if this.Query != that1.Query {
return false
}
return true
}
func (this *LokiLabelNamesResponse) Equal(that interface{}) bool {
@ -1315,11 +1327,12 @@ func (this *LokiLabelNamesRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s := make([]string, 0, 8)
s = append(s, "&queryrange.LokiLabelNamesRequest{")
s = append(s, "StartTs: "+fmt.Sprintf("%#v", this.StartTs)+",\n")
s = append(s, "EndTs: "+fmt.Sprintf("%#v", this.EndTs)+",\n")
s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n")
s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
@ -1776,6 +1789,13 @@ func (m *LokiLabelNamesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len(m.Query) > 0 {
i -= len(m.Query)
copy(dAtA[i:], m.Query)
i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Query)))
i--
dAtA[i] = 0x22
}
if len(m.Path) > 0 {
i -= len(m.Path)
copy(dAtA[i:], m.Path)
@ -2202,6 +2222,10 @@ func (m *LokiLabelNamesRequest) Size() (n int) {
if l > 0 {
n += 1 + l + sovQueryrange(uint64(l))
}
l = len(m.Query)
if l > 0 {
n += 1 + l + sovQueryrange(uint64(l))
}
return n
}
@ -2386,6 +2410,7 @@ func (this *LokiLabelNamesRequest) String() string {
`StartTs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`EndTs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EndTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
`Path:` + fmt.Sprintf("%v", this.Path) + `,`,
`Query:` + fmt.Sprintf("%v", this.Query) + `,`,
`}`,
}, "")
return s
@ -3809,6 +3834,38 @@ func (m *LokiLabelNamesRequest) Unmarshal(dAtA []byte) error {
}
m.Path = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
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 ErrIntOverflowQueryrange
}
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 ErrInvalidLengthQueryrange
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQueryrange
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Query = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQueryrange(dAtA[iNdEx:])

@ -105,6 +105,7 @@ message LokiLabelNamesRequest {
(gogoproto.nullable) = false
];
string path = 3;
string query = 4;
}
message LokiLabelNamesResponse {

@ -214,7 +214,7 @@ func (r roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error())
}
level.Info(logger).Log("msg", "executing query", "type", "labels", "label", lr.Name, "length", lr.End.Sub(*lr.Start))
level.Info(logger).Log("msg", "executing query", "type", "labels", "label", lr.Name, "length", lr.End.Sub(*lr.Start), "query", lr.Query)
return r.labels.RoundTrip(req)
case InstantQueryOp:

@ -276,6 +276,7 @@ func splitByTime(req queryrangebase.Request, interval time.Duration) ([]queryran
Path: r.Path,
StartTs: start,
EndTs: end,
Query: r.Query,
})
})
case *logproto.IndexStatsRequest:

@ -50,7 +50,7 @@ func recordQueryMetrics(data *queryData) {
case queryTypeLog, queryTypeMetric:
logql.RecordRangeAndInstantQueryMetrics(data.ctx, logger, data.params, data.status, *data.statistics, data.result)
case queryTypeLabel:
logql.RecordLabelQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.label, data.status, *data.statistics)
logql.RecordLabelQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.label, data.params.Query(), data.status, *data.statistics)
case queryTypeSeries:
logql.RecordSeriesQueryMetrics(data.ctx, logger, data.params.Start(), data.params.End(), data.match, data.status, *data.statistics)
default:

@ -139,26 +139,39 @@ func TestChunkStore_LabelValuesForMetricName(t *testing.T) {
for _, tc := range []struct {
metricName, labelName string
expect []string
matchers []*labels.Matcher
}{
{
`foo`, `bar`,
[]string{"baz", "beep", "bop"},
nil,
},
{
`bar`, `toms`,
[]string{"code"},
nil,
},
{
`bar`, `bar`,
[]string{"baz"},
nil,
},
{
`foo`, `foo`,
nil,
nil,
},
{
`foo`, `flip`,
[]string{"flap", "flop"},
nil,
},
{
`foo`, `toms`,
[]string{"code"},
[]*labels.Matcher{
labels.MustNewMatcher(labels.MatchRegexp, "bar", "baz|beep"),
},
},
} {
for _, schema := range schemas {
@ -180,7 +193,7 @@ func TestChunkStore_LabelValuesForMetricName(t *testing.T) {
}
// Query with ordinary time-range
labelValues1, err := store.LabelValuesForMetricName(ctx, userID, now.Add(-time.Hour), now, tc.metricName, tc.labelName)
labelValues1, err := store.LabelValuesForMetricName(ctx, userID, now.Add(-time.Hour), now, tc.metricName, tc.labelName, tc.matchers...)
require.NoError(t, err)
if !reflect.DeepEqual(tc.expect, labelValues1) {
@ -188,7 +201,7 @@ func TestChunkStore_LabelValuesForMetricName(t *testing.T) {
}
// Pushing end of time-range into future should yield exact same resultset
labelValues2, err := store.LabelValuesForMetricName(ctx, userID, now.Add(-time.Hour), now.Add(time.Hour*24*10), tc.metricName, tc.labelName)
labelValues2, err := store.LabelValuesForMetricName(ctx, userID, now.Add(-time.Hour), now.Add(time.Hour*24*10), tc.metricName, tc.labelName, tc.matchers...)
require.NoError(t, err)
if !reflect.DeepEqual(tc.expect, labelValues2) {
@ -196,7 +209,7 @@ func TestChunkStore_LabelValuesForMetricName(t *testing.T) {
}
// Query with both begin & end of time-range in future should yield empty resultset
labelValues3, err := store.LabelValuesForMetricName(ctx, userID, now.Add(time.Hour), now.Add(time.Hour*2), tc.metricName, tc.labelName)
labelValues3, err := store.LabelValuesForMetricName(ctx, userID, now.Add(time.Hour), now.Add(time.Hour*2), tc.metricName, tc.labelName, tc.matchers...)
require.NoError(t, err)
if len(labelValues3) != 0 {
t.Fatalf("%s/%s: future query should yield empty resultset ... actually got %v label values: %#v",
@ -700,6 +713,13 @@ func TestSeriesStore_LabelValuesForMetricName(t *testing.T) {
labels.MustNewMatcher(labels.MatchEqual, "toms", "code"),
},
},
{
`foo`, `toms`,
[]string{"code"},
[]*labels.Matcher{
labels.MustNewMatcher(labels.MatchRegexp, "env", "dev|prod"),
},
},
} {
for _, schema := range schemas {
for _, storeCase := range stores {

Loading…
Cancel
Save