Alberto Cortés
8f6a9f7833
config: simplify tests by using testutil.NotOk ( #3289 )
...
Also include filename in all LoadFile errors
Also add mesage to testuitl.NotOk so we can identify failing tests when
using table driven tests.
2017-12-08 16:52:25 +00:00
Tom Wiedenbein
937ac8c060
fixed bug with initialization of queueconfig
...
QueueConfigs would only ever initialize to the default settings, and would not pick up their respective values from YAML.
2017-12-08 02:11:45 -08:00
Goutham Veeramachaneni
e0d917e2f5
Merge pull request #3523 from Gouthamve/clean-tomb
...
Add endpoint to cleanup tombstones
2017-12-07 14:39:24 -06:00
Conor Broderick
08a4e0693b
Merge pull request #3556 from prometheus/remove-obsolete-todo
...
Remove obsolete TODO in API code
2017-12-07 15:54:47 +00:00
Shubheksha Jalan
35c1926d14
use httptest.NewRequest, remove http.ReadRequest ( #3557 )
2017-12-07 23:52:50 +08:00
Goutham Veeramachaneni
f0599d4dbf
Incorporate review-feedback
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-07 09:06:04 -06:00
Julius Volz
ab11a457e8
Remove obsolete TODO in API code
...
In https://github.com/prometheus/prometheus/pull/3230/files , contexts were
added to the Querier() method instead, and Cortex is fine with that.
2017-12-07 23:01:13 +08:00
James Turnbull
330735aca6
Added another full link to the configuration docs ( #3553 )
2017-12-07 08:31:15 +00:00
Callum Styan
ff0b0ac4b6
use test utils in chunk_test
2017-12-06 19:05:58 -08:00
Callum Styan
2ad78b3e51
use test utils in buffer_test
2017-12-06 17:15:02 -08:00
Callum Styan
ef99a94ffe
use test utils in labels_test
2017-12-06 17:13:00 -08:00
Callum Styan
e68ff0caec
use test utils in postings_test
2017-12-06 17:12:38 -08:00
Callum Styan
ca4e817372
move test utils to it's own package so we can use it in tests for other packages in tsdb repo
2017-12-06 17:06:14 -08:00
Callum Styan
fa26e2b6c3
use test utils in compact_test
2017-12-06 16:30:24 -08:00
Callum Styan
945b6b01aa
use test utils in index_test
2017-12-06 16:27:21 -08:00
Callum Styan
a1a91ea96a
use test utils in querier_test
2017-12-06 16:27:09 -08:00
Callum Styan
6c8bbf3f61
use test utils in wal_test
2017-12-06 16:16:42 -08:00
Callum Styan
76417b9b2a
use test utils in tombstone_tests
2017-12-06 16:05:37 -08:00
Callum Styan
5aa2af255b
use test utils in head_test
2017-12-06 16:00:14 -08:00
Callum Styan
ae8bb5fd16
add Nil and NotNil to test utils
2017-12-06 15:58:52 -08:00
Callum Styan
31c420088b
use test utils in chunks_test
2017-12-06 15:19:09 -08:00
Callum Styan
670c2917e2
use test utils in db_test
2017-12-06 15:18:42 -08:00
Amy Holt
607a675617
Add prefix to relative 3 URLs ( #3551 )
2017-12-06 21:16:53 +00:00
Conor Broderick
7417c60071
Merge pull request #3548 from whoward/fix-marathon-1-5
...
Parse the normalized container.PortMappings presented by the Marathon 1.5.x API
2017-12-06 17:25:21 +00:00
Will Howard
6a80fc24cf
Parse the normalized container.PortMappings presented by the Marathon 1.5.x API
...
Fixes #3465
2017-12-06 11:23:12 -05:00
Conor Broderick
59d4c539d1
Added rule name to rule error for easier debugging ( #3549 )
2017-12-06 15:39:06 +00:00
Krasi Georgiev
740662644e
write to temp dir and remove it at the end.
...
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
2017-12-06 10:45:58 +00:00
Goutham Veeramachaneni
311edc5a38
Merge branch 'master' into clean-tomb
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-05 10:23:21 -06:00
Brian Brazil
30b4439bbd
Remove rule_type label from rule metrics.
...
This is not really needed now that we have rule groups
to distinguish rules.
2017-12-04 11:44:38 +00:00
Brian Brazil
b97f4cf48c
Add metrics for rule group interval and last duration.
2017-12-04 11:44:38 +00:00
Brian Brazil
0a42a9fc8f
Copy over rule group duration on reload.
...
This is currently getting lost, this will soon be in a metric and we
don't want it dropping to 0 on every reload.
2017-12-04 11:44:38 +00:00
Brian Brazil
aa370fa568
Clarify metric names around rule groups.
...
Make it clear they're about overall rule groups.
2017-12-04 11:44:38 +00:00
Goutham Veeramachaneni
d8515b2580
Move Admin APIs to v1
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-04 00:13:43 +05:30
Brian Brazil
d7b3df5ae1
Fix staticcheck errors
2017-12-02 14:52:13 +00:00
Goutham Veeramachaneni
41b8f1f8fe
Add admin API docs
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-02 15:37:31 +05:30
Krasi Georgiev
29506e0bca
one meaningless write to the config file to trigger anothe fsnotify ( #3492 )
2017-12-01 17:32:27 +00:00
Matthias Rampke
cae4538b3e
Docs: state that all regular expressions are RE2. ( #3518 )
...
We already mentioned that regular expressions are RE2 for
[relabeling][0], but left open what the regular expression syntax
anywhere else is.
In the querying examples and reference, make it explicit that _all_
regular expressions are RE2.
[0]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
2017-12-01 17:26:06 +00:00
Krasi Georgiev
2c2a962da3
main.go integration test for Startup interrupting.
2017-12-01 10:58:01 +00:00
Vickenty Fesunov
9146760aab
Bump required golang version in the README ( #3528 )
...
10b2e8c637
pulled new TSDB, which uses `math/bits` package introduced in Go 1.9
2017-11-30 17:14:27 +00:00
Goutham Veeramachaneni
3de10e3b44
Add CleanTombstones API endpoint
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 19:51:44 +05:30
Goutham Veeramachaneni
36190239f6
Merge pull request #3524 from Gouthamve/rule-glob
...
Use the files globbed files and not the files in cfg
2017-11-30 19:04:51 +05:30
Goutham Veeramachaneni
823b7f90b3
Use the files globbed files and not the files in cfg
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 17:08:34 +05:30
Goutham Veeramachaneni
9f92a71053
vendor: update TSDB
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 16:50:41 +05:30
Goutham Veeramachaneni
a1be5db99f
vendor: Update grpc gateway deps
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 16:50:34 +05:30
Julien Pivotto
52c0121890
Correctly handle empty data set in the console view ( #3521 )
...
When there is an empty result set, the Prometheus server replies with
{"status":"success","data":{"resultType":"vector","result":null}}
That "null" reply was not handled correctly by the graphing library.
This commit handles that case and shows "no data" in the UI console view
instead of throwing an error in the browser javascript console.
Fixes #3515
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2017-11-30 10:04:02 +00:00
Goutham Veeramachaneni
30bbbe34f8
Merge pull request #210 from Gouthamve/tomb-clean
...
Add a function to cleanup tombstones.
2017-11-30 15:28:01 +05:30
Goutham Veeramachaneni
981e504bd7
Merge pull request #209 from Gouthamve/fix-dels
...
Partial chunk deletions are not compacted away
2017-11-30 15:25:25 +05:30
Goutham Veeramachaneni
f35e9c7fec
Merge branch 'master' into fix-dels
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 13:30:13 +05:30
Goutham Veeramachaneni
8a5ea9db74
Merge branch 'master' into tomb-clean
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 13:15:23 +05:30
Goutham Veeramachaneni
24ff293dc9
Merge pull request #207 from Gouthamve/compact-fail
...
Don't retry failed compactions.
2017-11-30 12:58:19 +05:30