github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/logproto/indexgateway.proto (about)

     1  syntax = "proto3";
     2  
     3  package indexgatewaypb;
     4  
     5  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6  import "pkg/logproto/logproto.proto";
     7  
     8  option go_package = "github.com/grafana/loki/pkg/logproto";
     9  
    10  // This exists in a different file to retain proto namespacing compatibility with it's prior definition, but has been relocated to the logproto go pkg.
    11  service IndexGateway {
    12    /// QueryIndex reads the indexes required for given query & sends back the batch of rows
    13    /// in rpc streams
    14    rpc QueryIndex(logproto.QueryIndexRequest) returns (stream logproto.QueryIndexResponse);
    15    /// GetChunkRef returns chunk reference that match the provided label matchers
    16    rpc GetChunkRef(logproto.GetChunkRefRequest) returns (logproto.GetChunkRefResponse) {}
    17    rpc GetSeries(logproto.GetSeriesRequest) returns (logproto.GetSeriesResponse) {}
    18    rpc LabelNamesForMetricName(logproto.LabelNamesForMetricNameRequest) returns (logproto.LabelResponse) {}
    19  
    20    rpc LabelValuesForMetricName(logproto.LabelValuesForMetricNameRequest) returns (logproto.LabelResponse) {}
    21  
    22    // Note: this MUST be the same as the variant defined in
    23    // logproto.proto on the Querier service.
    24    rpc GetStats(logproto.IndexStatsRequest) returns (logproto.IndexStatsResponse) {}
    25  }