prometheus/web
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
..
api Clean up license issues. 2015-01-21 20:07:45 +01:00
blob Clean up license issues. 2015-01-21 20:07:45 +01:00
httputils Clean up license issues. 2015-01-21 20:07:45 +01:00
static More efficient JSON query result format. 2015-01-26 13:06:22 +01:00
templates Complete Bootstrap 3 conversion. 2015-01-19 01:29:30 +01:00
.gitignore Ignore web/static/generated and build/root/share 2013-04-25 12:33:27 +02:00
Makefile Clean up license issues. 2015-01-21 20:07:45 +01:00
alerts.go Clean up license issues. 2015-01-21 20:07:45 +01:00
consoles.go Clean up license issues. 2015-01-21 20:07:45 +01:00
handler.go Clean up license issues. 2015-01-21 20:07:45 +01:00
status.go Clean up license issues. 2015-01-21 20:07:45 +01:00
web.go Clean up license issues. 2015-01-21 20:07:45 +01:00