Skip to content

Commit

Permalink
Add test case for this issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontj committed Mar 6, 2020
1 parent 36f49a7 commit 9ef77a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/testdata/issue_274.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Test for https://github.com/jacksontj/promxy/issues/274
load 5m
metric_1{a="1"} 1
metric_10{a="10"} 10
metric_1000{a="1000"} 1000
metric_10000{a="10000"} 10000

eval instant at 5m avg({__name__=~"metric_.*"}) by (a)
{a="1"} 1
{a="10"} 10
{a="1000"} 1000
{a="10000"} 10000

eval instant at 5m avg({__name__=~"metric_.*"}) by (__name__)
metric_1{} 1
metric_10{} 10
metric_1000{} 1000
metric_10000{} 10000

0 comments on commit 9ef77a7

Please sign in to comment.