-
Notifications
You must be signed in to change notification settings - Fork 817
/
Copy pathstats.proto
50 lines (45 loc) · 2.34 KB
/
stats.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
syntax = "proto3";
package stats;
option go_package = "stats";
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/any.proto";
option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
message Stats {
// The sum of all wall time spent in the querier to execute the query.
google.protobuf.Duration wall_time = 1 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
// The number of series fetched for the query
uint64 fetched_series_count = 2;
// The number of bytes of the chunks fetched for the query
uint64 fetched_chunk_bytes = 3;
// The number of bytes of data fetched for the query
uint64 fetched_data_bytes = 4;
// Extra fields to be reported on the stats log
map<string, string> extra_fields = 5;
// The number of chunks fetched for the query
uint64 fetched_chunks_count = 6;
// The number of samples fetched for the query
uint64 fetched_samples_count = 7;
// The limit hit when executing the query
string limit_hit = 8 [(gogoproto.nullable) = true];
// The total number of split queries sent after going through all the middlewares.
// It includes the number of requests that might be discarded by the queue.
uint64 split_queries = 9;
// The sum of wall time spent in the querier to fetch and merge data from storage.
google.protobuf.Duration query_storage_wall_time = 10 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
// The total number of postings touched in store gateway for a specific query.
// Only successful requests from querier to store gateway are included.
uint64 store_gateway_touched_postings_count = 11;
// The total size of postings touched in store gateway for a specific query, in bytes.
// Only successful requests from querier to store gateway are included.
uint64 store_gateway_touched_posting_bytes = 12;
// The total number of samples scanned while evaluating a query.
// Equal to TotalSamples in https://github.com/prometheus/prometheus/blob/main/util/stats/query_stats.go
uint64 scanned_samples = 13;
// The highest count of samples considered while evaluating a query.
// Equal to PeakSamples in https://github.com/prometheus/prometheus/blob/main/util/stats/query_stats.go
uint64 peak_samples = 14;
// The total number of not optimized regex matchers
uint64 not_optimized_regex_count = 15;
}