prometheus/rules
Julius Volz 080b952647 Allow omitting the metric name in queries.
This allows the following expression syntaxes for selecting timeseries:

  foo                    (already valid before)
  foo{}                  (already valid before)
  {job="prometheus"}     (new, select all timeseries for job "prometheus")

Omitting both the metric name *and* any label matchers ("" or "{}") will
still yield a syntax error.

To get all timeseries, you could do:

    {__name__=~".*"}
       or, without relying on knowledge about __metric__:
    {job=~".*"}

Change-Id: Ifee000b9ac0184ef6ced18411069c7f2699a2dda
2014-10-14 17:43:37 +02:00
..
ast Add back consoles link. 2014-10-02 15:44:47 +01:00
fixtures Add alertmanager notification support to Prometheus. 2013-07-30 17:23:41 +02:00
manager Make metrics exported by the Prometheus server itself more consistent. 2014-07-31 15:44:31 +02:00
alerting.go Let consoles get graph links from experssions. 2014-07-25 13:31:47 +01:00
helpers.go Let consoles get graph links from experssions. 2014-07-25 13:31:47 +01:00
helpers_test.go Separate storage implementation from interfaces. 2014-04-16 13:30:19 +02: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 Use github.com/golang/glog for all logging. 2013-08-12 17:54:36 +02:00
Makefile Swap rules lexer for much faster one. 2013-07-11 19:35:29 +02:00
parser.y Allow omitting the metric name in queries. 2014-10-14 17:43:37 +02:00
parser.y.go Allow omitting the metric name in queries. 2014-10-14 17:43:37 +02:00
recording.go Let consoles get graph links from experssions. 2014-07-25 13:31:47 +01:00
rules.go Separate storage implementation from interfaces. 2014-04-16 13:30:19 +02:00
rules_test.go Allow omitting the metric name in queries. 2014-10-14 17:43:37 +02:00