github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/query/test/compatibility/testdata/selectors.test (about)

     1  load 10s
     2  	http_requests{job="api-server", instance="0", group="production"}	0+10x1000 100+30x1000
     3  	http_requests{job="api-server", instance="1", group="production"}	0+20x1000 200+30x1000
     4  	http_requests{job="api-server", instance="0", group="canary"}		0+30x1000 300+80x1000
     5  	http_requests{job="api-server", instance="1", group="canary"}		0+40x2000
     6  
     7  eval instant at 8000s rate(http_requests[1m])
     8  	{job="api-server", instance="0", group="production"} 1
     9  	{job="api-server", instance="1", group="production"} 2
    10  	{job="api-server", instance="0", group="canary"} 3
    11  	{job="api-server", instance="1", group="canary"} 4
    12  
    13  eval instant at 18000s rate(http_requests[1m])
    14  	{job="api-server", instance="0", group="production"} 3
    15  	{job="api-server", instance="1", group="production"} 3
    16  	{job="api-server", instance="0", group="canary"} 8
    17  	{job="api-server", instance="1", group="canary"} 4
    18  
    19  eval instant at 8000s rate(http_requests{group=~"pro.*"}[1m])
    20  	{job="api-server", instance="0", group="production"} 1
    21  	{job="api-server", instance="1", group="production"} 2
    22  
    23  eval instant at 18000s rate(http_requests{group=~".*ry", instance="1"}[1m])
    24  	{job="api-server", instance="1", group="canary"} 4
    25  
    26  eval instant at 18000s rate(http_requests{instance!="3"}[1m] offset 10000s)
    27  	{job="api-server", instance="0", group="production"} 1
    28  	{job="api-server", instance="1", group="production"} 2
    29  	{job="api-server", instance="0", group="canary"} 3
    30  	{job="api-server", instance="1", group="canary"} 4
    31  
    32  eval instant at 18000s rate(http_requests[40s]) - rate(http_requests[1m] offset 10000s)
    33  	{job="api-server", instance="0", group="production"} 2
    34  	{job="api-server", instance="1", group="production"} 1
    35  	{job="api-server", instance="0", group="canary"} 5
    36  	{job="api-server", instance="1", group="canary"} 0
    37  
    38  # https://github.com/prometheus/prometheus/issues/3575
    39  eval instant at 0s http_requests{foo!="bar"}
    40  	http_requests{job="api-server", instance="0", group="production"} 0
    41  	http_requests{job="api-server", instance="1", group="production"} 0
    42  	http_requests{job="api-server", instance="0", group="canary"} 0
    43  	http_requests{job="api-server", instance="1", group="canary"} 0
    44  
    45  eval instant at 0s http_requests{foo!="bar", job="api-server"}
    46  	http_requests{job="api-server", instance="0", group="production"} 0
    47  	http_requests{job="api-server", instance="1", group="production"} 0
    48  	http_requests{job="api-server", instance="0", group="canary"} 0
    49  	http_requests{job="api-server", instance="1", group="canary"} 0
    50  
    51  eval instant at 0s http_requests{foo!~"bar", job="api-server"}
    52  	http_requests{job="api-server", instance="0", group="production"} 0
    53  	http_requests{job="api-server", instance="1", group="production"} 0
    54  	http_requests{job="api-server", instance="0", group="canary"} 0
    55  	http_requests{job="api-server", instance="1", group="canary"} 0
    56  
    57  eval instant at 0s http_requests{foo!~"bar", job="api-server", instance="1", x!="y", z="", group!=""}
    58  	http_requests{job="api-server", instance="1", group="production"} 0
    59  	http_requests{job="api-server", instance="1", group="canary"} 0
    60  
    61  # check special casing for existing label
    62  eval instant at 0s http_requests{job="", instance="0", group="production"}
    63  
    64  eval instant at 0s http_requests{job!="", instance="0", group="production"}
    65  	http_requests{job="api-server", instance="0", group="production"} 0
    66  
    67  eval instant at 0s http_requests{job=~"", instance="0", group="production"}
    68  
    69  eval instant at 0s http_requests{job!~"", instance="0", group="production"}
    70  	http_requests{job="api-server", instance="0", group="production"} 0
    71  
    72  eval instant at 0s http_requests{job=~".+", instance="0", group="production"}
    73  	http_requests{job="api-server", instance="0", group="production"} 0
    74  
    75  eval instant at 0s http_requests{job=~".*", instance="0", group="production"}
    76  	http_requests{job="api-server", instance="0", group="production"} 0
    77  
    78  eval instant at 0s http_requests{job!~".+", instance="0", group="production"}
    79  
    80  eval instant at 0s http_requests{job!~".*", instance="0", group="production"}
    81  
    82  # check special casing for non-existent label
    83  eval instant at 0s http_requests{foo="", job="api-server", instance="0", group="production"}
    84  	http_requests{job="api-server", instance="0", group="production"} 0
    85  
    86  eval instant at 0s http_requests{foo!="", job="api-server", instance="0", group="production"}
    87  
    88  eval instant at 0s http_requests{foo=~"", job="api-server", instance="0", group="production"}
    89  	http_requests{job="api-server", instance="0", group="production"} 0
    90  
    91  eval instant at 0s http_requests{foo!~"", job="api-server", instance="0", group="production"}
    92  
    93  eval instant at 0s http_requests{foo=~".+", job="api-server", instance="0", group="production"}
    94  
    95  eval instant at 0s http_requests{foo=~".*", job="api-server", instance="0", group="production"}
    96  	http_requests{job="api-server", instance="0", group="production"} 0
    97  
    98  eval instant at 0s http_requests{foo!~".+", job="api-server", instance="0", group="production"}
    99  	http_requests{job="api-server", instance="0", group="production"} 0
   100  
   101  eval instant at 0s http_requests{foo!~".*", job="api-server", instance="0", group="production"}
   102  
   103  clear