Get desktop application:
View/edit binary Protocol Buffers messages
Chunk represents a TSDB chunk. Time range [min, max] is inclusive.
Used in:
We require this to match chunkenc.Encoding.
Used in:
ChunkedReadResponse is a response when response_type equals STREAMED_XOR_CHUNKS. We strictly stream full series after series, optionally split by time. This means that a single frame can contain partition of the single series, but once a new series is started to be streamed it means that no more chunks will be sent for previous one. Series are returned sorted in the same way TSDB block are internally.
query_index represents an index of the query from ReadRequest.queries these chunks relates to.
ChunkedSeries represents single, encoded time series.
Used in:
Labels should be sorted.
Chunks will be in start time order and may overlap.
Used in:
Optional, can be empty.
timestamp is in ms format, see pkg/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
Used in: , , ,
Matcher specifies a rule, which can match or set of labels or not.
Used in:
Used in:
Used in:
Represents the metric type, these match the set from Prometheus. Refer to pkg/textparse/interface.go for details.
Used in:
Used in:
Used in:
Samples within a time series must be ordered by time.
Used in:
Query step size in milliseconds.
String representation of surrounding function or aggregation.
Start time in milliseconds.
End time in milliseconds.
List of label names used in aggregation.
Indicate whether it is without or by.
Range vector selector range in milliseconds.
ReadRequest represents a remote read request.
accepted_response_types allows negotiating the content type of the response. Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is implemented by server, error is returned. For request that do not contain `accepted_response_types` field the SAMPLES response type will be used.
Used in:
Server will return a single ReadResponse message with matched series that includes list of raw samples. It's recommended to use streamed response types instead. Response headers: Content-Type: "application/x-protobuf" Content-Encoding: "snappy"
Server will stream a delimited ChunkedReadResponse message that contains XOR encoded chunks for a single series. Each message is following varint size and fixed size bigendian uint32 for CRC32 Castagnoli checksum. Response headers: Content-Type: "application/x-streamed-protobuf; proto=prometheus.ChunkedReadResponse" Content-Encoding: ""
ReadResponse is a response when response_type equals SAMPLES.
In same order as the request's queries.
Used in:
timestamp is in ms format, see pkg/timestamp/timestamp.go for conversion from time.Time to Prometheus timestamp.
TimeSeries represents samples and labels for a single time series.
Used in: ,
For a timeseries to be valid, and for the samples and exemplars to be ingested by the remote system properly, the labels field is required.