Fabian Reinartz
4d964a0a0d
rules: make glob expansion a concern of main
2017-11-24 08:22:57 +01:00
Fabian Reinartz
bd9f7460eb
rules: remove config package dependency
2017-11-24 07:57:54 +01:00
Fabian Reinartz
2d0e3746ac
rules: remove dependency on promql.Engine
2017-11-24 07:57:54 +01:00
Fabian Reinartz
f8fccc73d8
promql: remove global metrics
2017-11-24 07:57:54 +01:00
Fabian Reinartz
2ec5965b75
Merge pull request #3508 from prometheus/uptsdb
...
update TSDB
2017-11-23 19:11:54 +01:00
Fabian Reinartz
ca1cb01177
Merge pull request #3509 from Gouthamve/rule-eval-times
...
Fix unexported method on exported interface.
2017-11-23 19:10:52 +01:00
Fabian Reinartz
83cd270ea4
*: adapt to storage interface changes
2017-11-23 19:05:04 +01:00
Fabian Reinartz
10b2e8c637
vendor: update prometheus/tsdb
2017-11-23 18:44:23 +01:00
Fabian Reinartz
ad3c4849a9
Merge pull request #212 from prometheus/fabxc
...
Cleanup, small refactoring, expose a few things
2017-11-23 18:41:24 +01:00
Goutham Veeramachaneni
17dd4f8f6c
Merge pull request #213 from Gouthamve/close-retention-blocks
...
Close the retention blocks before deleting them.
2017-11-23 19:30:51 +05:30
Goutham Veeramachaneni
a880c86375
Fix unexported method on exported interface.
...
Also move to model.Duration
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-23 19:13:57 +05:30
Goutham Veeramachaneni
41fd9c66ef
Close the retention blocks before deleting them.
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-23 18:57:10 +05:30
Fabian Reinartz
684be3f35e
Merge pull request #206 from prometheus/typez
...
Add explicit error to Querier.Select
2017-11-23 10:54:26 +01:00
Goutham Veeramachaneni
1fc94a02d1
Don't retry failed compactions.
...
Fixes prometheus/prometheus#3487
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-23 15:16:20 +05:30
Conor Broderick
84eca7dfb2
Merge pull request #3491 from Conorbro/eval-rules
...
Add rule evaluation time
2017-11-22 16:37:16 +00:00
Roman Demachkovych
5e243bc556
fix link
2017-11-22 16:26:06 +01:00
conorbroderick
55aaece116
Add rule evaluation time
2017-11-22 15:22:02 +00:00
Roman Demachkovych
b758039f80
Added in to documentation Ansible roles for Prometheus 2.0
2017-11-22 16:15:46 +01:00
Goutham Veeramachaneni
1627a47640
A copy is being assigned newChunk not the original
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-22 17:58:06 +05:30
Ben Kochie
40f33f45cb
Fix docs that use regexp anchors ( #3504 )
...
Remove/fix docs that use anchors in label regexp matches.
2017-11-22 12:11:21 +00:00
Frederic Branczyk
0deb74626f
Merge pull request #3498 from discostur/update-rbac-example
...
Fixed RBAC Example, added ingress privileges; @brian-brazil
2017-11-21 12:04:11 +01:00
root
80e5867a87
Fixed RBAC Example, added ingress privileges; @brian-brazil
2017-11-21 11:04:07 +01:00
Tom Wilkie
06dc1e8797
Include Pod UID in the discovery metadata.
2017-11-20 21:09:47 +00:00
Goutham Veeramachaneni
303efee1a9
Merge pull request #2408 from davkal/api-stats
...
Adds execution timer stats to the range query
2017-11-20 23:17:47 +05:30
David Kaltschmidt
8e01e7e388
Handle runtime errors as fatal test results
2017-11-19 21:15:24 +01:00
David Kaltschmidt
3c5d207a53
Changed test failure handler to Fatalf(), added comment
2017-11-19 21:06:35 +01:00
David Kaltschmidt
79caf5342e
Comment styles
2017-11-17 22:33:24 +01:00
David Kaltschmidt
0a3faee526
Pushed query timings into timings field, added tests
2017-11-17 22:30:59 +01:00
David Kaltschmidt
87c46ea6c3
Renamed TotalEvalTime to EvalTotalTime
...
* TotalFoo suggested a comprehensive timing, but TotalEvalTime was part
of the Exec timings, together with Queue timings
* The other option was to rename ExecTotalTime to TotalExecTime, but
there was already ExecQueueTime, suggesting Exec to be some sort of
group
2017-11-17 17:46:51 +01:00
David Kaltschmidt
af75ce02c1
Review feedback
...
* renamed MakeQueryStats
* added stats to query() as well
* gofmt
2017-11-16 16:30:48 +01:00
David Kaltschmidt
c93e54d240
Adds execution timer stats to the range query
...
API consumers should be able to get insight into the query run times.
The UI currently measures total roundtrip times. This PR allows for more
fine grained metrics to be exposed.
* adds new timer for total execution time (queue + eval)
* expose new timer, queue timer, and eval timer in stats field of the
range query response:
```json
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [],
"stats": {
"execQueueTimeNs": 4683,
"execTotalTimeNs": 2086587,
"totalEvalTimeNs": 2077851
}
}
}
```
* stats field is optional, only set when query parameter `stats` is not
empty
Try it via
```sh
curl 'http://localhost:9090/api/v1/query_range?query=up&start=1486480279&end=1486483879&step=14000&stats=true '
```
Review feedback
* moved query stats json generation to query_stats.go
* use seconds for all query timers
* expose all timers available
* Changed ExecTotalTime string representation from Exec queue total time to Exec total time
2017-11-16 16:05:10 +01:00
Fabian Reinartz
a031cf7424
Return ULID in Compactor
2017-11-14 15:25:30 +01:00
Goutham Veeramachaneni
a00d700d48
Merge pull request #200 from jaxi/build_on_smartos
...
Ensure tsdb can be built on SmartOS/Illumos/Solaris
2017-11-14 19:28:25 +05:30
Tobias Schmidt
a51c500e30
Merge pull request #3453 from prometheus/grobie/remote-read-filter
...
Add remote read filter option
2017-11-14 13:56:26 +01:00
Tobias Schmidt
deb64bf79a
Merge pull request #3471 from Gouthamve/remove-skipped-evals
...
rules: remove skipped iterations because no throttling anymore
2017-11-14 13:08:35 +01:00
Goutham Veeramachaneni
e1117715fe
rules: remove skipped iterations cuz no throttling
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-14 17:33:00 +05:30
Tobias Schmidt
7098c56474
Add remote read filter option
...
For special remote read endpoints which have only data for specific
queries, it is desired to limit the number of queries sent to the
configured remote read endpoint to reduce latency and performance
overhead.
2017-11-13 23:30:01 +01:00
Tobias Schmidt
434f0374f7
Refactor remote storage querier handling
...
* Decouple remote client from ReadRecent feature.
* Separate remote read filter into a small, testable function.
* Use storage.Queryable interface to compose independent
functionalities.
2017-11-13 23:19:15 +01:00
Tobias Schmidt
9b0091d487
Add storage.Queryable and storage.QueryableFunc
...
In order to compose different querier implementations more easily, this
change introduces a separate storage.Queryable interface grouping the
query (Querier) function of the storage.
Furthermore, it adds a QueryableFunc type to ease writing very simple
queryable implementations.
2017-11-13 20:19:37 +01:00
Tobias Schmidt
91be55ebf0
Merge pull request #3458 from grandbora/test-race
...
Fix race in test
2017-11-13 17:57:21 +01:00
Bora Tunca
493fd6bd1f
Fix race in test
2017-11-13 11:47:59 -05:00
Tobias Schmidt
6671277b12
Merge pull request #3464 from krasi-georgiev/flaky-file-discovery-tests-2
...
Fix flaky file discovery tests - sync the channel draining goroutine
2017-11-13 17:00:37 +01:00
Fabian Reinartz
f1512a368a
Expose ChunkSeriesSet and lookups methods.
2017-11-13 14:02:32 +01:00
Fabian Reinartz
3ef4326114
Refactor tombstone reader types
2017-11-13 13:38:07 +01:00
Krasi Georgiev
1005ef0a70
Fix flaky file discovery tests - sync the channel draining goroutine
2017-11-13 12:12:01 +00:00
Fabian Reinartz
e5ce2bef43
Add explicit error to Querier.Select
...
This has been a frequent source of debugging pain since errors are
potentially delayed to a much later point. They bubble up in an
unrelated execution path.
2017-11-13 12:16:58 +01:00
Tobias Schmidt
5766b36be2
Merge pull request #3271 from dlespiau/remove-go-vendor-experiment
...
Remove mentions of GO15VENDOREXPERIMENT
2017-11-13 12:03:18 +01:00
Damien Lespiau
4fff98fd7f
Remove last mention of GO15VENDOREXPERIMENT
...
Since #2750[1] prometheus depends on go 1.8. go 1.7 enabled vendoring by
default and removes the corresponding variable[2], simplifying things a bit.
[1] https://github.com/prometheus/prometheus/pull/2750
[2] https://blog.golang.org/go1.7
2017-11-13 11:00:30 +00:00
Ben Kochie
8bfbb4e733
Simplify Makefile promu fetch
...
Closes: https://github.com/prometheus/prometheus/issues/3460
2017-11-13 11:13:14 +01:00
Goutham Veeramachaneni
032413caf0
Merge pull request #205 from opsnull/master
...
fix typing
2017-11-13 10:52:10 +05:30