prometheus/rules
Julius Volz 00a2a93a05 Add regression tests for metrics mutations in AST.
It turned out in the end, that only drop_common_metrics() produced any
erroneous output in the old system. The second expression in the test
("sum(testmetric) keeping_extra") already worked in the old code, but
why not keep it in...

The way to test ranged evaluations is a bit clumsy so far, so I want to
build a nicer test framework in the end, where all the test cases can be
specified as text files which specify desired inputs, outputs, query
step widths, etc.

Change-Id: I821859789e69b8232bededf670a1b76e9e8c8ca4
2014-12-12 20:34:55 +01:00
..
ast Add regression tests for metrics mutations in AST. 2014-12-12 20:34:55 +01:00
fixtures Add alertmanager notification support to Prometheus. 2013-07-30 17:23:41 +02:00
manager Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
alerting.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
helpers.go Apply a giant code cleanup. 2014-12-10 16:16:49 +01:00
helpers_test.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
lexer.l Add regex-matching support for labels. 2014-04-01 14:24:53 +02:00
lexer.l.go Add regex-matching support for labels. 2014-04-01 14:24:53 +02:00
load.go Apply a giant code cleanup. 2014-12-10 16:16:49 +01:00
Makefile Simplify makefiles. 2014-11-25 17:10:39 +01:00
parser.y Allow alternative "by"-clause position in grammar. 2014-11-25 17:09:04 +01:00
parser.y.go Allow alternative "by"-clause position in grammar. 2014-11-25 17:09:04 +01:00
recording.go Introduce copy-on-write for metrics in AST. 2014-12-12 20:34:55 +01:00
rules.go Major code cleanup. 2014-11-25 17:02:53 +01:00
rules_test.go Add regression tests for metrics mutations in AST. 2014-12-12 20:34:55 +01:00