Commit graph

2183 commits

Author SHA1 Message Date
Fabian Reinartz 38220cf132 Move assets generation to top level make file 2016-01-11 16:48:17 +01:00
Fabian Reinartz 0c4842436f Replace Makefile with simpler setup 2016-01-11 16:48:17 +01:00
Fabian Reinartz 8a378c309b Remove .pkgignore file 2016-01-11 16:48:17 +01:00
Fabian Reinartz d6e59fc38f Add newline to vendor.js after upstream fix 2016-01-11 16:48:17 +01:00
Fabian Reinartz 90f73b5005 Upgrade expfmt vendoring 2016-01-11 16:48:16 +01:00
Fabian Reinartz bb74d7ba39 Remove compression from web interface 2016-01-11 16:48:16 +01:00
Fabian Reinartz afa484b098 Apply HTTP handler compression everywhere 2016-01-11 16:48:16 +01:00
Fabian Reinartz b998b5884e Bump travis go version 2016-01-11 16:48:16 +01:00
Julius Volz 6d42878ee3 Make -web.external-url help string more verbose. 2016-01-11 16:48:16 +01:00
Julius Volz bf03eee920 Fix InfluxDB write support to work with InfluxDB 0.9.x.
Because the InfluxDB client library currently pulls in multiple MBs of
unnecessary dependencies, I have modified and cut up the vendored
version to only pull in the few pieces that are actually needed.

On InfluxDB's side, this dependency issue is tracked in:

https://github.com/influxdb/influxdb/issues/3447

Hopefully, it will be resolved soon.

If a password is needed for InfluxDB, it may be supplied via the
INFLUXDB_PW environment variable.
2016-01-11 16:48:16 +01:00
Julius Volz 09b557a085 Improve remote storage queue manager metrics. 2016-01-11 16:48:16 +01:00
Fabian Reinartz 9a6e7b3e3b Run gofmt 2016-01-11 16:48:16 +01:00
Fabian Reinartz f24d34d6cd Move vendor file to new location 2016-01-11 16:48:16 +01:00
Fabian Reinartz 99f058e7e5 Vendoring via govendor 2016-01-11 16:48:15 +01:00
Fabian Reinartz fec1e0a563 Remove Godeps 2016-01-11 16:48:15 +01:00
beorn7 597bc2707e Increase waiting time in TestEvictAndLoadChunkDescs
The test had become flaky with Go1.5.

Theory here is that with Go1.5.x, sleeping for 10ms might not be
enough to wake up another goroutine, possibly because it is used for
GC. 50ms should always be enough due to GC pause guarantees with the
new GC.
2016-01-11 16:48:15 +01:00
Brian Brazil d33b5ebfb9 promql: Bump sleep in query timeout test
This test is flaky, I'm presuming the time.AfterFunc
call is being delayed so the evaluation isn't getting
cancelled.
2016-01-11 16:48:15 +01:00
Julius Volz 8d80bf4696 Fix some dead code, missing error checks, shadowings.
I applied
https://medium.com/@jgautheron/quality-pipeline-for-go-projects-497e34d6567
and was greeted with a deluge of warnings, most of which were not
applicable or really fixable realistically. These are some of the first
ones I decided to fix.
2016-01-11 16:48:15 +01:00
Brian Brazil 0904c73a52 Remove optional vector() 2nd argument 2016-01-11 16:48:15 +01:00
Fabian Reinartz 9655d22ff7 Fix redirect path 2016-01-11 16:48:15 +01:00
Fabian Reinartz c62ca1dadf Change UI start page 2016-01-11 16:48:15 +01:00
Brian Brazil 2e1356c749 promql: Add vector function.
Currently the only way to convert a scalar to a vector is to
use absent(), which isn't very clean. This adds a vector()
function that's the inverse of scalar() and lets your optionally
set labels.

Example usage would be
vector(time() % 86400) < 3600
to filter to only the first hour of the day.
2016-01-11 16:48:14 +01:00
Julius Volz 5aa3bee006 Remove notice about 0.14.x config file format change. 2016-01-11 16:48:14 +01:00
beorn7 fa8d43bd24 Fix DropMetricsForFingerprints
It now deletes the series file also for archived series.

Also, fix a naming error in a doc comment.
2016-01-11 16:48:14 +01:00
Jimmi Dyson 0ae051994d Clean up kubernetes http response bodies 2016-01-11 16:48:14 +01:00
Anders Daljord Morken bedf8ee2a6 Close HTTP connections on HTTP errors too.
Move defer resp.Body.Close() up to make sure it's called even when the
HTTP request returns something other than 200 or Decoder construction
fails. This avoids leaking and eventually running out of file descriptors.
2016-01-11 16:48:14 +01:00
Fabian Reinartz c4a41f71a1 Fix go1.5 compile flag warnings 2016-01-11 16:48:14 +01:00
Fabian Reinartz fedfe44366 Use go1.5.1 2016-01-11 16:48:14 +01:00
Julius Volz 183f2b4da8 Fix bool modifier in recording rules and printing.
Fixes https://github.com/prometheus/prometheus/issues/1065
2016-01-11 16:48:14 +01:00
Jimmi Dyson ba7c737b25 Kubernetes SD config check 2016-01-11 16:48:14 +01:00
Jimmi Dyson 609db27948 Move TLS options to scrape config
Fixes #1013, fixes #989
2016-01-11 16:48:14 +01:00
Julius Volz 3307a3ff38 Fix error checking and logging around checkpointing. 2016-01-11 16:48:14 +01:00
Julius Volz 485d31ff9e Fix typo in comment. 2016-01-11 16:48:13 +01:00
Fabian Reinartz 7481e97c4d Change mail address 2016-01-11 16:48:13 +01:00
Fabian Reinartz db30972769 Point README to new architecture diagram 2016-01-11 16:48:13 +01:00
Fabian Reinartz bd3cb88a6f Update architecture diagram 2016-01-11 16:48:13 +01:00
Robert Jacob 847072514e Fix missing unmarshal for Marathon SD config. 2016-01-11 16:48:13 +01:00
Jimmi Dyson 852dfd99e2 Kubernetes SD improvements
* Support multiple masters with retries against each master as required.
* Scrape masters' metrics.
* Add role meta label for node/service/master to make it easier for relabeling.
2016-01-11 16:48:13 +01:00
Fabian Reinartz d6ac8c57aa Attach global labels to remote storage samples 2016-01-11 16:48:13 +01:00
Fabian Reinartz 20d7228eb4 Attach global labels to outgoing alerts. 2016-01-11 16:48:13 +01:00
Fabian Reinartz 8d8fdeaa58 Add global labels to federation 2016-01-11 16:48:13 +01:00
Fabian Reinartz 4be0f57447 Remove attachment of global labels upon ingestion 2016-01-11 16:48:13 +01:00
Brian Brazil 43c6b6557c promql: Add 'bool' modifier to comparison functions
When doing comparison operations on vectors, filtering
sometimes gets in the way and you have to go to a fair bit of
effort to workaround it in order to always return a result.
The 'bool' modifier instead of filtering returns 0/1 depending
on the result of the compairson.

This is also a prerequisite to removing plain scalar/scalar comparisons,
as it maintains the current behaviour under a new syntax.
2016-01-11 16:48:13 +01:00
Silas Snider 464fe38038 Add instrumentation around configuration reloads.
This commit enables automation (and alerting) around attempts to update prometheus
server configuration automatically.
2016-01-11 16:48:12 +01:00
Fabian Reinartz b90f0da30a Change email address 2016-01-11 16:48:12 +01:00
Julius Volz 9257c3018c Change relabel_replace() to do full-string matches.
THIS IS A BREAKING CHANGE.

Fixes part of https://github.com/prometheus/prometheus/issues/996
2016-01-11 16:48:12 +01:00
Fabian Reinartz 013dd09a42 Fix map initialization 2016-01-11 16:48:12 +01:00
Julius Volz 811ab05e0e Change config regexes to full-string matches.
This anchors all regular expressions entered via the config to match a
full string vs. a substring.

THIS IS A BREAKING CHANGE!

Fixes part of https://github.com/prometheus/prometheus/issues/996
2016-01-11 16:48:12 +01:00
Dieter Plaetinck c61d8f2164 fix comment.
the sample doesn't get appended to the list of sampleappenders.
2016-01-11 16:48:12 +01:00
Fabian Reinartz 8a0b506ea8 Fix draining of file watcher events 2016-01-11 16:48:12 +01:00