Add tests for negative selectors. (#3616)

https://github.com/prometheus/prometheus/issues/3575
pull/3618/head
Brian Brazil 7 years ago committed by GitHub
parent d76d5de66f
commit b418063d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,3 +35,25 @@ eval instant at 18000s rate(http_requests[40s]) - rate(http_requests[1m] offset
{job="api-server", instance="0", group="canary"} 5
{job="api-server", instance="1", group="canary"} 0
# https://github.com/prometheus/prometheus/issues/3575
eval instant at 0s http_requests{foo!="bar"}
http_requests{job="api-server", instance="0", group="production"} 0
http_requests{job="api-server", instance="1", group="production"} 0
http_requests{job="api-server", instance="0", group="canary"} 0
http_requests{job="api-server", instance="1", group="canary"} 0
eval instant at 0s http_requests{foo!="bar", job="api-server"}
http_requests{job="api-server", instance="0", group="production"} 0
http_requests{job="api-server", instance="1", group="production"} 0
http_requests{job="api-server", instance="0", group="canary"} 0
http_requests{job="api-server", instance="1", group="canary"} 0
eval instant at 0s http_requests{foo!~"bar", job="api-server"}
http_requests{job="api-server", instance="0", group="production"} 0
http_requests{job="api-server", instance="1", group="production"} 0
http_requests{job="api-server", instance="0", group="canary"} 0
http_requests{job="api-server", instance="1", group="canary"} 0
eval instant at 0s http_requests{foo!~"bar", job="api-server", instance="1", x!="y", z="", group!=""}
http_requests{job="api-server", instance="1", group="production"} 0
http_requests{job="api-server", instance="1", group="canary"} 0

Loading…
Cancel
Save