promtool: allow setting multiple matchers to "promtool tsdb dump" command. (#13296)
Conditions are ANDed inside the same matcher but matchers are ORed Including unit tests for "promtool tsdb dump". Refactor some matchers scraping utils. Signed-off-by: machine424 <ayoubmrini424@gmail.com>pull/13398/head
parent
17920623e7
commit
ace9c8a3da
@ -0,0 +1,15 @@ |
||||
{__name__="heavy_metric", foo="bar"} 5 0 |
||||
{__name__="heavy_metric", foo="bar"} 4 60000 |
||||
{__name__="heavy_metric", foo="bar"} 3 120000 |
||||
{__name__="heavy_metric", foo="bar"} 2 180000 |
||||
{__name__="heavy_metric", foo="bar"} 1 240000 |
||||
{__name__="heavy_metric", foo="foo"} 5 0 |
||||
{__name__="heavy_metric", foo="foo"} 4 60000 |
||||
{__name__="heavy_metric", foo="foo"} 3 120000 |
||||
{__name__="heavy_metric", foo="foo"} 2 180000 |
||||
{__name__="heavy_metric", foo="foo"} 1 240000 |
||||
{__name__="metric", baz="abc", foo="bar"} 1 0 |
||||
{__name__="metric", baz="abc", foo="bar"} 2 60000 |
||||
{__name__="metric", baz="abc", foo="bar"} 3 120000 |
||||
{__name__="metric", baz="abc", foo="bar"} 4 180000 |
||||
{__name__="metric", baz="abc", foo="bar"} 5 240000 |
@ -0,0 +1,10 @@ |
||||
{__name__="heavy_metric", foo="foo"} 5 0 |
||||
{__name__="heavy_metric", foo="foo"} 4 60000 |
||||
{__name__="heavy_metric", foo="foo"} 3 120000 |
||||
{__name__="heavy_metric", foo="foo"} 2 180000 |
||||
{__name__="heavy_metric", foo="foo"} 1 240000 |
||||
{__name__="metric", baz="abc", foo="bar"} 1 0 |
||||
{__name__="metric", baz="abc", foo="bar"} 2 60000 |
||||
{__name__="metric", baz="abc", foo="bar"} 3 120000 |
||||
{__name__="metric", baz="abc", foo="bar"} 4 180000 |
||||
{__name__="metric", baz="abc", foo="bar"} 5 240000 |
@ -0,0 +1,2 @@ |
||||
{__name__="metric", baz="abc", foo="bar"} 2 60000 |
||||
{__name__="metric", baz="abc", foo="bar"} 3 120000 |
Loading…
Reference in new issue