Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loki/pkg/logproto/logproto.proto

30 lines
701 B

syntax = "proto3";
package logproto;
import "google/protobuf/timestamp.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "google.golang.org/grpc/health/grpc_health_v1/health.proto";
service Aggregator {
rpc Push(WriteRequest) returns (WriteResponse) {};
rpc Check(grpc.health.v1.HealthCheckRequest) returns (grpc.health.v1.HealthCheckResponse);
}
message WriteRequest {
repeated Stream streams = 1;
}
message WriteResponse {
}
message Stream {
string labels = 1;
repeated Entry entries = 2 [(gogoproto.nullable) = false];
}
message Entry {
google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
string line = 2;
}