prometheus/rules
Julius Volz d4374a9265 More efficient JSON query result format.
This depends on https://github.com/prometheus/client_golang/pull/51.

For vectors, the result format looks like this:

```json
{
   "version": 1,
   "type" : "vector",
   "value" : [
      {
         "timestamp" : 1421765411.045,
         "value" : "65.475000",
         "metric" : {
            "quantile" : "0.5",
            "instance" : "http://localhost:9090/metrics",
            "job" : "prometheus",
            "__name__" : "http_request_duration_microseconds",
            "handler" : "/static/",
            "method" : "get",
            "code" : "304"
         }
      },
      {
         "timestamp" : 1421765411.045,
         "value" : "5826.339000",
         "metric" : {
            "quantile" : "0.9",
            "instance" : "http://localhost:9090/metrics",
            "job" : "prometheus",
            "__name__" : "http_request_duration_microseconds",
            "handler" : "prometheus",
            "method" : "get",
            "code" : "200"
         }
      },
      /* ... */
   ]
}
```

For matrices, it looks like this:

```json
{
   "version": 1,
   "type" : "matrix",
   "value" : [
      {
         "metric" : {
            "quantile" : "0.99",
            "instance" : "http://localhost:9090/metrics",
            "job" : "prometheus",
            "__name__" : "http_request_duration_microseconds",
            "handler" : "/static/",
            "method" : "get",
            "code" : "200"
         },
         "values" : [
            [
               1421765547.659,
               "29162.953000"
            ],
            [
               1421765548.659,
               "29162.953000"
            ],
            [
               1421765549.659,
               "29162.953000"
            ],
            /* ... */
         ]
      }
   ]
}
```
2015-01-26 13:06:22 +01:00
..
ast More efficient JSON query result format. 2015-01-26 13:06:22 +01:00
fixtures Add alertmanager notification support to Prometheus. 2013-07-30 17:23:41 +02:00
manager Clean up license issues. 2015-01-21 20:07:45 +01:00
alerting.go Clean up license issues. 2015-01-21 20:07:45 +01:00
helpers_test.go Clean up license issues. 2015-01-21 20:07:45 +01:00
helpers.go Clean up license issues. 2015-01-21 20:07:45 +01:00
lexer.l Clean up license issues. 2015-01-21 20:07:45 +01:00
lexer.l.go Clean up license issues. 2015-01-21 20:07:45 +01:00
load.go Clean up license issues. 2015-01-21 20:07:45 +01:00
Makefile Clean up license issues. 2015-01-21 20:07:45 +01:00
parser.y Clean up license issues. 2015-01-21 20:07:45 +01:00
parser.y.go Rename remaining all-caps constants in AST layer. 2014-12-25 01:30:47 +01:00
recording.go Clean up license issues. 2015-01-21 20:07:45 +01:00
rules_test.go Make 2nd arg to delta optional. Add a deriv() function. 2015-01-23 14:50:27 +00:00
rules.go Clean up license issues. 2015-01-21 20:07:45 +01:00