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
Daniel Lundin
103aca942d
serverset: extract shard number from serverset data
2016-01-11 16:48:12 +01:00
Brian Brazil
47ef1e2fdb
rules: Allow for setting labels on LHS on scalars
2016-01-11 16:48:12 +01:00
Julius Volz
1a1f8e7819
Add POST handler for /debug to fix CPU profiling.
...
`go tool pprof` sends a POST request to enable CPU profiling, so we also
need to handle that method.
2016-01-11 16:48:12 +01:00
Julius Volz
20d0bf4d65
Fix flakey FileSD test.
...
When the test ends, all files matching the watcher's glob are removed
via defer. In that moment, the draining goroutine may still be running
and then detect no files matching the configured glob just before the
test exits.
This is now solved by waiting for the draining goroutine to finish
before leaving the test function and thus causing the deferred file
removal.
2016-01-11 16:48:12 +01:00
Julius Volz
2ad4987e09
Fix "go vet" errors.
...
I ignored all errors of the type "composite literal uses unkeyed
fields". Most of them are wrong because of
https://github.com/golang/go/issues/9171 .
2016-01-11 16:48:11 +01:00
Julius Volz
bb0ba8d68f
Fix most golint warnings.
...
This is with `golint -min_confidence=0.5`.
I left several lint warnings untouched because they were either
incorrect or I felt it was better not to change them at the moment.
2016-01-11 16:48:11 +01:00
Fabian Reinartz
0830b0cd70
Move metric modifications into SampleAppenders
2016-01-11 16:48:11 +01:00
Julius Volz
077a753e6b
Merge pull request #1006 from prometheus/true-values
...
promql: Remove interpolation of vector values.
2015-08-25 16:11:07 +02:00
Fabian Reinartz
a2d117c677
Merge pull request #1025 from prometheus/model
...
Migrate promql to common/model
2015-08-25 13:55:56 +02:00
Fabian Reinartz
d6b8da8d43
Switch promql types to common/model
2015-08-25 13:49:14 +02:00
Fabian Reinartz
e061595352
Move COWMetric into storage/metric package
2015-08-25 11:59:07 +02:00
Fabian Reinartz
ad8e8f9f24
Upgrade common vendoring
2015-08-25 11:59:07 +02:00
Fabian Reinartz
3394fb8745
Merge pull request #1026 from prometheus/format
...
Do a make format run
2015-08-25 00:19:49 +02:00
Brian Brazil
a09d896cbf
Do a make format run
2015-08-24 18:32:48 +01:00
Fabian Reinartz
d6d88f8950
Add missing license headers
2015-08-24 19:19:21 +02:00