Commit Graph

15 Commits

Author SHA1 Message Date
Fabian Reinartz
5602328c7c Refactor query evaluation.
This copies the evaluation logic from the current rules/ package.
The new engine handles the execution process from query string to final result.
It provides query timeout and cancellation and general flexibility for
future changes.

functions.go: Add evaluation implementation. Slight changes to in/out data but
	not to the processing logic.
quantile.go: No changes.
analyzer.go: No changes.
engine.go: Actually new part. Mainly consists of evaluation methods
	which were not changed.
setup_test.go: Copy of rules/helpers_test.go to setup test storage.
promql_test.go: Copy of rules/rules_test.go.
2015-04-28 14:19:05 +02:00
beorn7
191c728152 Update vendoring. 2015-04-08 18:24:23 +02:00
Julius Volz
18efed761b Update vendored client_golang to 0.3.2.
For the Prometheus server, this fixes a bug where rules with a
right-hand-side that had a metric name would not correctly replace that
metric name with the left-hand side's rule name.
2015-03-11 18:20:02 +01:00
beorn7
b98622094f Add license files left out by godep.
As it looks, `godep update ...` will preserve the files.

Obviously, if you blow away everything and run a `godep save ...` from
scratch, those files will be missing again. A `godep save` to add new
dependencies without blowing away the `Godeps` directory should work
fine, though.
2015-03-04 15:48:51 +01:00
beorn7
5ed3bf2e4b Update vendoring of client_golang to 0.3.1. 2015-03-04 13:42:06 +01:00
beorn7
a18cb29fa8 Update vendored client_golang to v0.3.0. 2015-03-03 18:34:01 +01:00
beorn7
f74f7f2fb1 Re-rewrite import paths.
Another run of 'godep save' fixed the import path.

So you first have to run 'godep update <packages>' and then a 'godep save'.

Let's see if this satisfies Travis.
2015-02-26 22:08:45 +01:00
beorn7
08acf744f7 Update client_golang. 2015-02-26 19:26:44 +01:00
beorn7
784176d572 Update vendoring. 2015-02-26 19:26:43 +01:00
beorn7
a4f6edf496 Vendor client_golang v0.2.0. 2015-02-23 18:11:42 +01:00
beorn7
9827e1ccec Update vendoring of client_golang. 2015-02-22 01:04:52 +01:00
Julius Volz
5643587cc9 Also vendor Prometheus-internal deps and update existing ones. 2015-02-17 02:20:12 +01:00
Julius Volz
740a99a9ac Remove Google Code files, add GitHub files for protobuf lib. 2015-02-17 02:08:56 +01:00
Julius Volz
af627bb2b9 Copy vendored deps manually instead of using Godeps.
We were using Godep incorrectly (cloning repos from the internet during
build time instead of including Godeps/_workspace in the GOPATH via
"godep go"). However, to avoid even having to fetch "godeps" from the
internet during build, this now just copies the vendored files into the
GOPATH.

Also, the protocol buffer library moved from Google Code to GitHub,
which is reflected in these updates.

This fixes https://github.com/prometheus/prometheus/issues/525
2015-02-17 02:08:56 +01:00
Stuart Nelson
f1c257845f Vendor external dependencies with godep. 2015-01-09 12:00:42 +01:00