Commit graph

2261 commits

Author SHA1 Message Date
Jimmi Dyson 5028482388 Add Kubernetes namespace & name labels to example config 2016-01-11 16:48:20 +01:00
Jimmi Dyson 88c6da77f9 Kubernetes SD example: separate out cluster level components & services 2016-01-11 16:48:20 +01:00
Jimmi Dyson fb0931d681 Kubernetes SD config tidy & add labelmap action example 2016-01-11 16:48:20 +01:00
Keegan Carruthers-Smith cf5a5a82ac Move InCluster auth in kubernetes example config
CA and Bearer Token are config of `kubernetes_sd_configs`, not the
`scrape_config`. Also updated misleading top-level comment and removed
unnecessary global config.
2016-01-11 16:48:20 +01:00
Julius Volz af661ad76c Fix target manager CPU busyloop caused by bad done-channel handling.
Unfortunately this isn't nicely testable, as it's timing-dependent and
one would have to detect a stray goroutine doing a CPU busyloop...

Fixes https://github.com/prometheus/prometheus/issues/1114
2016-01-11 16:48:20 +01:00
Brian Brazil 10b6d43b3e retrieval: Reduce flakiness of TestTargetRunScraperScrapes 2016-01-11 16:48:20 +01:00
Brian Brazil 0f77856095 retrieval: Add URL parameters to fullLabels too
Move all the special cases into one map, rather than
spreading the logic around.
2016-01-11 16:48:19 +01:00
Fabian Reinartz a4abed1e01 Switch to common/route package 2016-01-11 16:48:19 +01:00
Julius Volz b3ab5ec5d4 Fix / -> /graph redirect when using a path prefix. 2016-01-11 16:48:19 +01:00
Brian Brazil ac72fb75d0 promql: Reduce flakiness of concurrency test 2016-01-11 16:48:19 +01:00
Brian Brazil a7a1200f28 Retrieval: Show error message for failed test scrape
This is flaky, and I suspect it was due the to I/O timeout that I've
already fixed. In case that wasn't it, display the error should it
happen again.
2016-01-11 16:48:19 +01:00
Brian Brazil 1c5fbd568c retrieval: Reduce flakiness of TestTargetManagerChan
This will increase test time by a few hundred ms,
this is the 2nd most common cause of flakiness.
2016-01-11 16:48:19 +01:00
Brian Brazil 99935fdc48 retrieval: Reduce flakiness of target tests
Bump timeouts of tests where we don't want I/O timeouts.

Adjust the full channel test to be much more reliable,
by reducing the ingestion timeout from 1ms to 0.
2016-01-11 16:48:19 +01:00
Fabian Reinartz 2346d9927b Fix nil panic on consul error 2016-01-11 16:48:19 +01:00
Fabian Reinartz 1d8cb6b3e1 Update expfmt.NewDecoder usage 2016-01-11 16:48:18 +01:00
Matt Jibson 9bc4779be2 Allow labelmap action 2016-01-11 16:48:18 +01:00
beorn7 90f594c9fb Fix creation of protobuf fields 2016-01-11 16:48:18 +01:00
Fabian Reinartz 64187e59ce Fix phony targets and log asset generation 2016-01-11 16:48:18 +01:00
Fabian Reinartz 6d5cd89464 Fix unkeyed field errors. 2016-01-11 16:48:18 +01:00
Fabian Reinartz aa020d556c Fix missing return on error 2016-01-11 16:48:18 +01:00
Fabian Reinartz 8eae11da5c Fix scalar construction in function 2016-01-11 16:48:18 +01:00
Julius Volz 1df8ccb542 Add vector() function to CHANGELOG.md. 2016-01-11 16:48:18 +01:00
Julius Volz 0496125a58 Fix date of 0.16.0rc1 release in CHANGELOG.md. 2016-01-11 16:48:18 +01:00
Julius Volz 5dcc21899c Fix trailing space in Makefile. 2016-01-11 16:48:18 +01:00
Julius Volz 31385d50cd Cut Prometheus 0.16.0rc1. 2016-01-11 16:48:17 +01:00
Fabian Reinartz b39a2cee47 Fix missing go version in build tags 2016-01-11 16:48:17 +01:00
Fabian Reinartz 44bbf7ef5f Add goenv script and fix Docker 2016-01-11 16:48:17 +01:00
Fabian Reinartz 85c78ce86f Update Readme for new Makefile 2016-01-11 16:48:17 +01:00
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