Simon Pasquier
2d7f562ed6
web: fix asset paths for Windows platforms ( #4616 )
...
* web: fix asset paths for Windows platforms
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* web: add tests
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-19 12:50:53 +05:30
Fabian Reinartz
dfcb7d0d50
Merge pull request #389 from gouthamve/wal-corruptio
...
Make sure WAL Repair can handle wrapped errors
2018-09-19 08:47:24 +02:00
Goutham Veeramachaneni
c7d0d10da4
Make sure WAL Repair can handle wrapped errors
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-19 12:12:25 +05:30
Björn Rabenstein
d1a6edae6f
Merge pull request #386 from prometheus/beorn7/client_golang
...
Revert "Remove `prometheus_` prefix from metrics"
2018-09-18 19:27:31 +02:00
beorn7
3bc6c670fa
Revert "Remove prometheus_
prefix from metrics"
...
This reverts commit 98fe30438c
.
After some discussion, it was concluded that we want the full
`prometheus_tsdb_...` prefix hardcoded in the library.
Signed-off-by: beorn7 <beorn@soundcloud.com>
2018-09-18 19:19:19 +02:00
Camille Janicki
b035ea0ea9
Change discovery subpackages to not use testify in tests ( #4612 )
...
* Change discovery subpackages to not use testify in tests
Signed-off-by: Camille Janicki <camille.janicki@gmail.com>
* Remove testify suite from vendor dir
Signed-off-by: Camille Janicki <camille.janicki@gmail.com>
2018-09-18 17:35:22 +02:00
Harsh Agarwal
18a9a390b5
Add duplicate-labelset check for range/instant vectors ( #4589 )
...
Signed-off-by: Harsh Agarwal <cs15btech11019@iith.ac.in>
2018-09-18 10:46:13 +01:00
Augustin Husson
3c0b130e5e
apply review
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2018-09-18 11:08:38 +02:00
Chris Marchbanks
a8966cb53d
Fix race condition between gc and committing ( #378 )
...
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2018-09-17 19:58:42 +03:00
Callum Styan
722f0ab920
break MigrateWAL into two functions, detection and migration ( #371 )
...
Signed-off-by: Callum Styan <callumstyan@gmail.com>
2018-09-17 19:30:56 +03:00
Frederic Branczyk
1b651ea7d4
Merge pull request #383 from prometheus/beorn7/client_golang
...
Remove `prometheus_` prefix from metrics
2018-09-17 15:16:04 +02:00
beorn7
98fe30438c
Remove prometheus_
prefix from metrics
...
This can now be added by users of the library as needed with the new
https://godoc.org/github.com/prometheus/client_golang/prometheus#WrapRegistererWithPrefix
Signed-off-by: beorn7 <beorn@soundcloud.com>
2018-09-17 14:54:28 +02:00
Björn Rabenstein
cfbd72b4f1
Merge pull request #4620 from prometheus/beorn7/client_golang
...
Update to current client_golang
2018-09-17 14:28:47 +02:00
Krasi Georgiev
ad459ca1f4
re-added TestDeleteUntilCurMax TestDelete_e2e ( #382 )
...
no logic changes just uncommented and fixed the issues.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-09-17 14:28:55 +03:00
beorn7
4fb59d1e61
Remove use of deprecated prometheus.Handler
...
Signed-off-by: beorn7 <beorn@soundcloud.com>
2018-09-17 13:05:43 +02:00
beorn7
5e4a76e66b
Update vendoring of client_golang and friends
...
Signed-off-by: beorn7 <beorn@soundcloud.com>
2018-09-17 13:03:28 +02:00
Augustin Husson
e03869de76
add unit test and isolate the method that generate the target
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2018-09-16 23:50:10 +02:00
Augustin Husson
97950a3fae
remove group if the target is empty at adapter level
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2018-09-16 14:38:21 +02:00
Bob Shannon
cb7f320d42
Expose prometheus_tsdb_lowest_timestamp metric ( #363 )
...
* Expose prometheus_tsdb_start_time_seconds metric
Signed-off-by: Bob Shannon <bshannon@palantir.com>
* Search for block with smallest minTime
Signed-off-by: Bob Shannon <bshannon@palantir.com>
* PR comments
Signed-off-by: Bob Shannon <bshannon@palantir.com>
* PR comment: Make metric name more accurate
Signed-off-by: Bob Shannon <bshannon@palantir.com>
2018-09-14 17:37:45 +05:30
Alexey Palazhchenko
9be883670e
fix the test data file path in benchmarks. ( #345 )
...
Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
2018-09-13 19:34:26 +03:00
Simon Pasquier
128ff546b8
config: add test for OpenStack SD ( #4594 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-13 21:44:27 +05:30
Ganesh Vernekar
05726c5ea2
Test template expansion while loading groups ( #4537 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-13 13:55:58 +01:00
yzpeninsula
4ae3bce260
Fix typo ( #4497 )
...
Signed-off-by: yzpeninsula <yzpeninsula@gmail.com>
2018-09-13 16:04:10 +05:30
Tom Wilkie
e3d36f4802
Don't import testing from non-test code. ( #4595 )
...
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2018-09-13 16:03:26 +05:30
Bryan Boreham
968f657eaa
Stop removing the final dot from rooted DNS names ( #4586 )
...
Removing a final dot changes the meaning of the name and can cause
extra DNS lookups as the resolver traverses its search path.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2018-09-13 15:28:38 +05:30
Ganesh Vernekar
576ee4d309
Label name check for 'count_values' ( #4585 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-13 15:27:36 +05:30
Goutham Veeramachaneni
9ee4b05d16
Better link for docs ( #4593 )
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-13 15:26:41 +05:30
Ganesh Vernekar
73db8b8cea
[bugfix] Parse negative value in PromQL ( #4564 )
...
* Parse negative value in PromQL
* Enforce space between values
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-13 09:08:01 +01:00
Simon Pasquier
e7cee1b5ba
Remove tests redundant with TestTargetUpdatesOrder
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 17:56:53 +02:00
Simon Pasquier
7dc3f11306
WIP discovery: refactor TestTargetUpdatesOrder
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:15:03 +02:00
Simon Pasquier
8fd891bf3f
Speed up tests that were still using the 5s timeout
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
8289501420
Address krasi's comments
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
1cee5b5b06
Don't multiple the interval value by 1ms in the mock
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
4900405d2f
Refactor TestCoordinationWithReceiver() to work with any Discoverer
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
0798f14e02
Add TestCoordinationWithEmptyProvider
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Simon Pasquier
48989d8996
discovery: add more tests
...
Co-authored-by: Camille Janicki <camille.janicki@gmail.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-12 16:13:15 +02:00
Goutham Veeramachaneni
16532a7111
changelog: /s/backward compatible/forward compatible/ ( #4600 )
...
Fixes #4597
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-12 16:14:48 +05:30
Ganesh Vernekar
2945db18ca
Changes in series names (and types) exposed ( #376 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-12 14:39:02 +05:30
Goutham Veeramachaneni
d9129adb52
Merge pull request #375 from codesome/symbol-table-size
...
Added metric for symbol table size
2018-09-11 17:43:30 +05:30
Goutham Veeramachaneni
068eaa5dbf
Release 2.4.0 ( #4592 )
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-11 16:13:52 +05:30
Ganesh Vernekar
77d2c7cf3d
Added metric for symbol table size
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-08 23:58:36 +05:30
Goutham Veeramachaneni
d075d78bfd
release 2.4.0-rc.0 ( #4576 )
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-06 19:04:59 +05:30
Goutham Veeramachaneni
3e87c04b83
Logger is nil for API. Fixes #4577 ( #4583 )
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-09-06 16:07:48 +05:30
Tom Wilkie
457e4bb58e
Limit the number of samples remote read can return. ( #4532 )
...
* Limit the number of samples remote read can return.
- Return 413 entity too large.
- Limit can be set be a flag. Allow 0 to mean no limit.
- Include limit in error message.
- Set default limit to 50M (* 16 bytes = 800MB).
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2018-09-05 15:50:50 +02:00
Augustin Husson
9970e4e7e4
unregister source when the target is empty
...
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2018-09-05 15:26:48 +02:00
Krasi Georgiev
ba7eb733e8
tidy up the discovery logs,updating loops and selects ( #4556 )
...
* tidy up the discovery logs,updating loops and selects
few objects renamings
removed a very noise debug log on the k8s discovery. It would be usefull
to show some summary rather than every update as this is impossible to
follow.
added most comments as debug logs so each block becomes self
explanatory.
when the discovery receiving channel is full will retry again on the
next cycle.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
* add noop logger for the SD manager tests.
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
* spelling nits
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-09-05 17:02:47 +05:30
Tariq Ibrahim
f708fd5c99
Adding support for multiple azure environments ( #4569 )
...
Signed-off-by: Tariq Ibrahim <tariq.ibrahim@microsoft.com>
2018-09-04 17:55:40 +02:00
Simon Pasquier
40517dc4b3
Merge pull request #4539 from tariq1890/fix_docker_label
...
Fix Dockerfile label syntax
2018-09-04 09:22:30 +02:00
Simon Pasquier
674c76adb8
discovery: coalesce identical SD configurations ( #3912 )
...
* discovery: coalesce identical SD configurations
Instead of creating as many SD providers as declared in the
configuration, the discovery manager merges identical configurations
into the same provider and keeps track of the subscribers. When
the manager receives target updates from a SD provider, it will
broadcast the updates to all interested subscribers.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-09-01 08:51:31 +01:00
Simon Pasquier
75bd348135
web: clean up api/v2 ( #4554 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-08-29 12:55:46 +05:30