Commit graph

10024 commits

Author SHA1 Message Date
Jan van Valburg 68f3df49d0 stoarge: fix 'access denied' error on Windows
On Windows, it is not possible to rename or delete a file that is
currerntly open. This change closes the file in dropAndPersistChunks
before it tries to delete it, or rename the temporary file to it.
2016-06-21 11:21:20 +02:00
Fabian Reinartz beecbe3d2f Merge branch 'release-0.20' 2016-06-17 14:43:10 +02:00
Brian Brazil f3e3befb83 Merge pull request #1746 from fatih/fix-alertstmt-print
promql: fix printing annotations of an *AlertStmt
2016-06-16 16:49:19 +01:00
Fatih Arslan 362e44501a promql: fix printing annotations of an *AlertStmt
Currently the printer doesn't print the annotations of an `*AlertStmt`
declaration. I've added a test case as well, which fails for the current
master.
2016-06-16 17:43:54 +03:00
Nicholas Capo 84334a8410 discovery: use consul service address if available 2016-06-15 19:27:05 -05:00
Fabian Reinartz aeab25c35d Merge pull request #1742 from prometheus/fabxc-0.20.0
*: cut 0.20.0
2016-06-15 17:52:52 +02:00
Fabian Reinartz 3a9b739f30 *: cut 0.20.0 2016-06-15 17:31:26 +02:00
Fabian Reinartz bae1cfee69 Merge pull request #1739 from prometheus/fabxc-opendbsd-arm
promu: don't build openbsd/arm
2016-06-15 17:20:16 +02:00
Fabian Reinartz 384153fe1f promu: don't build openbsd/arm and mips
Deactivate crossbuilding for openbsd/arm and mips as golang.org/x/sys
does not have the necessary syscalls implemented.
2016-06-15 15:41:22 +02:00
Fabian Reinartz 4aeab798e8 Merge pull request #1738 from prometheus/release-0.19
Forward-merge 0.19 fixes into master
2016-06-14 18:11:47 +02:00
Fabian Reinartz 3c80609fce Merge pull request #1737 from prometheus/fabxc-0.19.3
Bump version to 0.19.3
2016-06-14 18:04:56 +02:00
Fabian Reinartz a5b35498a8 *: bump version to 0.19.3 2016-06-14 14:19:31 +02:00
Fabian Reinartz 4c864c8a88 retrieval: don't sync to uninitialized scrape pool
This change does just signal a scrape target update to the scraping loop
once an initial target set is fetched.
Before, the scrape pool was directly synced, causing a race against an
uninitialized scrape pool.

Fixes #1703
2016-06-14 14:18:40 +02:00
Fabian Reinartz 4f139c765b Merge pull request #1736 from prometheus/fabxc-ctxpanic
retrieval: don't sync to uninitialized scrape pool
2016-06-14 14:16:11 +02:00
Fabian Reinartz 452486bd22 Merge pull request #1735 from prometheus/beorn7/race
discovery/marathon: Fix race conditions in test
2016-06-14 14:12:16 +02:00
Fabian Reinartz d0eeae9d0e retrieval: don't sync to uninitialized scrape pool
This change does just signal a scrape target update to the scraping loop
once an initial target set is fetched.
Before, the scrape pool was directly synced, causing a race against an
uninitialized scrape pool.

Fixes #1703
2016-06-14 14:04:22 +02:00
beorn7 03adbe57e4 discovery/marathon: Fix race conditions in test
The concurrency applied before is in most cases not even needed. With
a cap=1 channel, most tests are much cleaner.

TestMarathonSDRunAndStop was trickier. It could even have blocked
before.

This also includes a general refactoring of the whole file.
2016-06-14 13:12:53 +02:00
Björn Rabenstein 43a36e545b Merge pull request #1732 from prometheus/beorn7/doc
Update scrape config in example prometheus.yml
2016-06-14 10:01:39 +02:00
beorn7 44aa7ec46d doc: Update scrape config in example prometheus.yml 2016-06-14 09:57:03 +02:00
Björn Rabenstein 2ea3a837c3 Merge pull request #1731 from prometheus/release-0.19
Forward-merge 0.19 fixes to master
2016-06-14 09:21:52 +02:00
Björn Rabenstein bc58d3dc50 Merge pull request #1729 from rohit01/release-0.19
discovery/marathon: #1722 - ignore apps with zero ports
2016-06-14 08:14:45 +02:00
rohit01 47dd5f74ba discovery/marathon: #1722 - ignore apps with zero ports 2016-06-14 04:44:00 +05:30
Fabian Reinartz 3dcdd2b5ea Merge pull request #1728 from alileza/file_sd
Re-ordering config validation
2016-06-13 09:32:58 +02:00
Ali Reza 98c156c361 reorder config validation, move checkOverflow before any other validation 2016-06-13 10:02:20 +07:00
Brian Brazil a3c4beb6ee Merge pull request #1721 from prometheus/console-time
Do our own date parsing in console template graph controls.
2016-06-10 10:29:02 +01:00
Brian Brazil 4dbe689632 Do our own date parsing in console template graph controls.
Fixes #1442
2016-06-10 10:23:40 +01:00
Fabian Reinartz a08943e6d3 Merge pull request #1718 from prometheus/fabxc-template-round
web: round last scrape timestamp to milliseconds
2016-06-08 20:30:01 +02:00
Fabian Reinartz 25135c3691 web: round last scrape timestamp to milliseconds 2016-06-08 20:23:54 +02:00
Fabian Reinartz 76ffdf4cc5 Merge pull request #1716 from prometheus/fabxc-static-configs
config: deprecate `target_groups` for `static_configs`
2016-06-08 16:14:21 +02:00
Fabian Reinartz 0f21bd31ca config: deprecate target_groups for static_configs
This change deprecates the `target_groups` option in favor
of `static_configs`. The old configuration is still accepted
but prints a warning.
Configuration loading errors if both options are set.
2016-06-08 15:55:25 +02:00
Fabian Reinartz ad18ac51b8 Merge pull request #1715 from prometheus/fabxc-vendor-fsnotify
vendor: update gopkg.in/fsnotify.v1
2016-06-08 15:33:23 +02:00
Fabian Reinartz 733ed099f5 vendor: update gopkg.in/fsnotify.v1
This updates the fsnotify package, which now uses golang.org/x/sys/unix
package. This fixes #1507.
2016-06-08 11:59:16 +02:00
Brian Brazil 05b918a024 Merge pull request #1713 from mattbostock/document_drop
Relabel: Document whole label set is dropped
2016-06-07 17:22:34 +01:00
Matt Bostock 329a00e44f Relabel: Document whole label set is dropped
From the documentation and current tests, it wasn't immediately clear to
me whether the `target` being dropped as the result of a 'drop' action
was a label key-value pair or the entire labelset.

Add a test that documents this behaviour.

Documentation: https://prometheus.io/docs/operating/configuration/
2016-06-07 17:13:30 +01:00
Brian Brazil 33759dddd2 Merge pull request #1712 from fabric8io/kubernetes-sd-node-ip-labels
Kubernetes SD: Add labels for all node addresses and discover node port
2016-06-07 12:37:40 +01:00
Jimmi Dyson 206bcfcdaa
Kubernetes SD: Remove kubeletPort config option 2016-06-07 12:34:55 +01:00
Jimmi Dyson d48297c904
Kubernetes SD: Add labels for all node addresses and discover node port if available 2016-06-07 12:34:49 +01:00
Fabian Reinartz 26b1c89469 Merge pull request #1702 from pdbogen/master
Initial local pods before using the pod list to initialize pod targets
2016-06-06 15:14:49 +02:00
Fabian Reinartz dd57e7ef5c Merge pull request #1699 from prometheus/fabxc-multiam
notifier: dispatch to multiple Alertmanagers
2016-06-06 12:01:41 +02:00
Fabian Reinartz 35ccca09ea Merge pull request #1704 from prometheus/fabxc-ghtemplate
Make issue reports great again!
2016-06-06 11:49:09 +02:00
Fabian Reinartz fa1dc018cb .github: Add issue template 2016-06-06 11:48:14 +02:00
Fabian Reinartz 9baf120cd5 notifier: dispatch to multiple Alertmanagers
This commit extends the notifier to dispatch alert batches
to multiple Alertmanagers concurrently.
It changes the `-alertmanager.url` flag to accept a comma
separated list of URLs and/or to be set multiple times.
2016-06-06 11:41:10 +02:00
Björn Rabenstein 2bcf712e29 Merge pull request #1657 from joshuarubin/master
fix build with multi-part $GOPATH
2016-06-06 11:35:49 +02:00
Björn Rabenstein e084d8e8c1 Merge pull request #1701 from prometheus/beorn7/lock
Make the number of fingerprint mutexes configurable
2016-06-03 13:31:57 +02:00
beorn7 b274c7aaa7 Update doc comments 2016-06-03 12:34:01 +02:00
Patrick Bogen 1e6770cdc5 Initial local pods before using the pod list to initialize pod targets; include more logging in pod target creation 2016-06-02 17:49:21 -07:00
beorn7 99881ded63 Make the number of fingerprint mutexes configurable
With a lot of series accessed in a short timeframe (by a query, a
large scrape, checkpointing, ...), there is actually quite a
significant amount of lock contention if something similar is running
at the same time.

In those cases, the number of locks needs to be increased.

On the same front, as our fingerprints don't have a lot of entropy, I
introduced some additional shuffling. With the current state, anly
changes in the least singificant bits of a FP would matter.
2016-06-02 19:18:00 +02:00
Julius Volz 894cf8df2f Merge pull request #1690 from andmarios/master
Fix consoles and console_libraries path in Dockerfile.
2016-06-01 21:15:49 -05:00
Julius Volz 2eaccdd111 Merge pull request #1697 from sigma-star/master
Fix JS XHR requests in prom_console.js on IE11
2016-06-01 20:15:02 -05:00
David Gstir 2dd80225a4 Fix JS XHR requests in prom_console.js on IE11
IE11 does not support automatic JSON parsing for responses with
xhr.responseType = 'json', so we have to to do it manually.
2016-06-01 19:44:04 +02:00