From e62644c01dbd53da3376a20b35d70c138b2cbc4b Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Tue, 1 May 2018 17:23:56 -0700 Subject: [PATCH] Add test case for labels attached to servergroups --- test/testdata/selectors.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/testdata/selectors.test b/test/testdata/selectors.test index afa68109f..ac92c1413 100644 --- a/test/testdata/selectors.test +++ b/test/testdata/selectors.test @@ -34,6 +34,9 @@ eval instant at 18000s rate(http_requests{group=~".*ry", instance="1"}[1m]) {az="a", job="api-server", instance="1", group="canary"} 4 {az="b", job="api-server", instance="1", group="canary"} 4 +eval instant at 18000s rate(http_requests{group=~".*ry", instance="1", az="a"}[1m]) + {az="a", job="api-server", instance="1", group="canary"} 4 + eval instant at 18000s rate(http_requests{instance!="3"}[1m] offset 10000s) {az="a", job="api-server", instance="0", group="production"} 1 {az="a", job="api-server", instance="1", group="production"} 2