Debian Codegraph @

tests/languages/promql/time_series_selection.test

raw
1 http_requests_total{job="apiserver", handler="/api/comments"}[5m]
2
3 http_requests_total offset 5m
4
5 http_requests_total{job=~".*server"}
6
7 ----------------------------------------------------
8
9 [
10 "http_requests_total",
11 ["context-labels", [
12 ["punctuation", "{"],
13 ["label-key", "job"],
14 ["punctuation", "="],
15 ["label-value", "\"apiserver\""],
16 ["punctuation", ","],
17 ["label-key", "handler"],
18 ["punctuation", "="],
19 ["label-value", "\"/api/comments\""],
20 ["punctuation", "}"]
21 ]],
22 ["context-range", [
23 ["punctuation", "["],
24 ["range-duration", "5m"],
25 ["punctuation", "]"]
26 ]],
27
28 "\r\n\r\nhttp_requests_total ",
29 ["keyword", "offset"],
30 ["context-range", [
31 ["range-duration", "5m"]
32 ]],
33
34 "\r\n\r\nhttp_requests_total",
35 ["context-labels", [
36 ["punctuation", "{"],
37 ["label-key", "job"],
38 ["punctuation", "=~"],
39 ["label-value", "\".*server\""],
40 ["punctuation", "}"]
41 ]]
42 ]
43
44 ----------------------------------------------------
45
46 Checks simple time series queries.