Simon Pasquier
208d21a393
Add comment and print units
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-26 10:26:58 +02:00
Simon Pasquier
ba22b10113
prometheus: log virtual memory limits
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-25 15:51:27 +02:00
Tom Wilkie
3b5dea4e6d
Don't import testing in code which is imported from non-test code. ( #4400 )
...
It polutes the flags.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2018-07-25 13:10:09 +01:00
José Martínez
791c13b142
discovery/ec2: Add primary_subnet_id label
...
Signed-off-by: José Martínez <xosemp@gmail.com>
2018-07-25 09:20:58 +01:00
José Martínez
5e4a33c890
discovery/ec2: Maintain order of subnet_id label
...
Signed-off-by: José Martínez <xosemp@gmail.com>
2018-07-25 09:20:58 +01:00
Stafford Williams
286a8e0554
go-bindata debug clarification ( #4411 )
...
Signed-off-by: Stafford Williams <stafford.williams@gmail.com>
2018-07-24 14:01:56 +01:00
Harsh Agarwal
6a464ae174
expose log.level for promlog for remote_storage_adapter ( #4195 )
...
* expose log.level for promlog for remote_storage_adapter
Signed-off-by: sipian <cs15btech11019@iith.ac.in>
* replace flag description
Signed-off-by: Harsh Agarwal <cs15btech11019@iith.ac.in>
2018-07-22 16:11:38 +05:30
Simon Pasquier
c016b63219
Merge pull request #4378 from pgier/makefile-allow-target-overrides
...
add prefix "common-" to make target names
2018-07-19 16:32:16 +02:00
Thomas Jackson
56daa1f28a
Only add LookbackDelta to vector selectors ( #4399 )
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
Related to #4226
2018-07-19 06:16:05 +01:00
Julius Volz
d8153ac5d5
Update internal architecture diagram ( #4398 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 22:10:23 +02:00
Adam Shannon
566c80b47c
web: add named anchors for each rule group ( #4130 )
...
* web: add named anchors for each rule group
Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
2018-07-18 16:34:41 +01:00
Daisy T
a3376e8f36
add query labels command to promtool ( #4346 )
...
Signed-off-by: Daisy T <daisyts@gmx.com>
2018-07-18 16:27:28 +02:00
Bryan Boreham
afdb66dfac
Expose Group.CopyState() ( #4304 )
...
This makes the `rules` package more useful to projects that use
Prometheus as a library.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2018-07-18 15:14:38 +02:00
Alin Sinpalean
372e7652b7
Reuse (copy) overlapping matrix samples between range evaluation steps ( #4315 )
...
* Reuse (copy) overlapping matrix samples between range evaluation steps.
Signed-off-by: Alin Sinpalean <alin.sinpalean@gmail.com>
2018-07-18 11:14:02 +01:00
Jannick Fahlbusch ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
0be25f92e2
EC2 Discovery: Allow to set a custom endpoint ( #4333 )
...
Allowing to set a custom endpoint makes it easy to monitor targets on non AWS providers with EC2 compliant APIs.
Signed-off-by: Jannick Fahlbusch <git@jf-projects.de>
2018-07-18 10:48:14 +01:00
Julius Volz
95dfb1b1dd
Add missing import to promtool, fix build ( #4395 )
...
Sorry, I used GitHub's web-based merge-conflict-resolution editor on
https://github.com/prometheus/prometheus/pull/4308 and it didn't show me
test errors afterwards, but maybe they didn't run again or I should have
waited or something.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 10:26:45 +02:00
Shubheksha
125da3b812
promtool: add command for querying series ( #4308 )
...
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com>
2018-07-18 10:15:58 +02:00
Julius Volz
a215aed9b6
Document internal Prometheus server architecture ( #4295 )
...
* Document internal Prometheus server architecture
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Review fixups
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 10:06:41 +02:00
Julius Volz
03aa3a3de8
main: Improve / clean up error messages ( #4286 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 09:58:40 +02:00
Chih-Hung Yeh
912d19fb85
Add 3 commands in promtool
for getting debug information from prometheus server ( #4247 )
...
`debug all` - all information
`debug metrics` - metrics information
`debug pprof` - profiling information
the final result is compressed in a `tar.gz` file
Signed-off-by: chyeh <chyeh.taiwan@gmail.com>
2018-07-18 10:52:01 +03:00
Tony Lee
bcdaf8e2d2
add unused pointslices to the pool ( #4363 )
...
Signed-off-by: Tony Lee <tl@hudson-trading.com>
2018-07-18 05:29:21 +01:00
Ivan Voronchihin
1c6f2a1b68
Update aws-sdk-go ( #4153 )
...
Signed-off-by: bege13mot <bege13mot@gmail.com>
2018-07-18 05:26:04 +01:00
Ivan Voronchihin
59d214d277
Update autorest vedoring ( #4147 )
...
Signed-off-by: bege13mot <bege13mot@gmail.com>
2018-07-18 05:24:15 +01:00
Goutham Veeramachaneni
c28cc5076c
Saner defaults and metrics for remote-write ( #4279 )
...
* Rename queueCapacity to shardCapacity
* Saner defaults for remote write
* Reduce allocs on retries
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2018-07-18 05:15:16 +01:00
Alin Sinpalean
e3b775b78b
Simplify BufferedSeriesIterator usage ( #4294 )
...
* Allow for BufferedSeriesIterator instances to be created without an underlying iterator, to simplify their usage.
Signed-off-by: Alin Sinpalean <alin.sinpalean@gmail.com>
2018-07-18 05:10:28 +01:00
Sneha Inguva
295a95329e
Update vendoring of Prometheus Go client ( #4283 )
...
This is to pickup changes from
https://github.com/prometheus/client_golang/pull/414 . It leads to
better error output in promtool.
Signed-off-by: Sneha Inguva <singuva@digitalocean.com>
2018-07-18 05:08:38 +01:00
Julius Volz
219e477272
Fix some (valid) lint errors ( #4287 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 05:07:33 +01:00
Romain Baugue
b41be4ef52
Discovery consul service meta ( #4280 )
...
* Upgrade Consul client
* Add ServiceMeta to the labels in ConsulSD
Signed-off-by: Romain Baugue <romain.baugue@elwinar.com>
2018-07-18 05:06:56 +01:00
Martin Lee
d0f11a3cc6
Forbid rule-abiding robots from indexing. ( #4266 )
...
* Resolves github issue #4257
Signed-off-by: Martin Lee <martin@billforward.net>
2018-07-18 05:01:57 +01:00
Thomas Jackson
92c6f0c92e
Add offset to selectParams ( #4226 )
...
* Add Start/End to SelectParams
* Make remote read use the new selectParams for start/end
This commit will continue sending the start/end time of the remote read
query as the overarching promql time and the specific range of data that
the query is intersted in receiving a response to is now part of the
ReadHints (upstream discussion in #4226 ).
* Remove unused vendored code
The genproto.sh script was updated, but the code wasn't regenerated.
This simply removes the vendored deps that are no longer part of the
codegen output.
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2018-07-18 04:58:00 +01:00
Alin Sinpalean
96fb0b2155
Optimize PromQL aggregations ( #4248 )
...
* Compute hash of label subsets without creating a LabelSet first.
Signed-off-by: Alin Sinpalean <alin.sinpalean@gmail.com>
2018-07-18 04:56:27 +01:00
Julius Volz
9e3171f6e3
rules: Minor naming/comment cleanups ( #4328 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-18 04:54:33 +01:00
Brian Brazil
3ee7a6a6c2
Merge pull request #4375 from prometheus/release-2.3
...
Merge 2.3.2 release back to master
2018-07-16 14:41:43 +01:00
Simon Pasquier
f32acc0b7b
discovery/openstack: remove unneeded assignment
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-15 12:37:57 +01:00
Simon Pasquier
ed99af0b05
docs: fix OpenStack SD for the hypervisor role
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-15 12:37:57 +01:00
Tom Wilkie
3228814456
Don't forget to register query_duration_seconds{slice="queue_time"} ( #4381 )
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2018-07-15 12:24:37 +01:00
Paul Gier
cfb3f31538
add prefix "common-" to make target names
...
This allows rules to be overridden with warnings about conflicting
target names.
Signed-off-by: Paul Gier <pgier@redhat.com>
2018-07-12 16:53:34 -05:00
Peter Gallerani
a9d5034add
Fix missing 'msg' in remote storage adapter main.go .Log info message ( #4377 )
...
Signed-off-by: Peter Gallerani <peter.gallerani@gmail.com>
2018-07-12 20:54:21 +02:00
Brian Brazil
5b596b97bc
Merge branch 'master' into release-2.3
2018-07-12 16:44:11 +01:00
Julius Volz
05d6d6a2e5
k8s SD: Fix "schema" -> "scheme" typo ( #4371 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-07-12 16:12:32 +02:00
Brian Brazil
71af5e29e8
Merge pull request #4370 from prometheus/232
...
Release 2.3.2
2018-07-12 15:00:12 +01:00
Brian Brazil
ebe107b71b
Release 2.3.2
...
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-07-12 14:44:46 +01:00
Brian Brazil
fc2a9c986b
Update vendoring for tsdb ( #4369 )
...
This pulls in tsdb PRs 330 344 348 353 354 356
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-07-11 15:55:39 +01:00
Brian Brazil
508662fb24
Reorder startup and shutdown to prevent panics. ( #4321 )
...
Start rule manager only after tsdb and config is loaded.
Stop rule manager before tsdb to avoid writing to closed storage.
Wait for any in-progress reloads to complete before shutting
down rule manager, so that rule manager doesn't get updated after
being shut down.
Remove incorrect comment around shutting down query enginge.
Log when config reload is completed.
Fixes #4133
Fixes #4262
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-07-11 15:55:30 +01:00
Michael Khalil
5e9056d2f3
return error exit status in prometheus cli ( #4296 )
...
Signed-off-by: mikeykhalil <mikeyfkhalil@gmail.com>
2018-07-11 15:55:15 +01:00
Frederic Branczyk
f7e1a94b03
Merge pull request #4329 from nailgun/4327-ingress-discovery-issue
...
discovery/kubernetes/ingress: fix TLS discovery
2018-07-11 15:54:24 +01:00
Krasi Georgiev
0b93fd6d5e
fix the zookeper race ( #4355 )
...
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-07-11 15:51:46 +01:00
Thomas Jackson
86239ee5a5
Check for timeout in each iteration of matrixSelector ( #4300 )
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
Fixes #4288
2018-07-11 15:51:33 +01:00
Thomas Jackson
fc7f45ba9e
Timeout if populating iterators takes too long ( #4291 )
...
Right now promql won't time out a request if populating the iterators
takes a long time.
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
Fixes #4289
2018-07-11 15:51:33 +01:00
Thomas Jackson
63b8e4fb88
Bubble up errors to promql from populating iterators ( #4136 )
...
This changes the Walk/Inspect API inside the promql package to bubble
up errors. This is done by having the inspector return an error (instead
of a bool) and then bubbling that up in the Walk. This way if any error
is encountered in the Walk() the walk will stop and return the error.
This avoids issues where errors from the Querier where being ignored
(causing incorrect promql evaluation).
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
Fixes #4136
2018-07-11 15:46:37 +01:00