Goutham Veeramachaneni
efb0dfe1be
Implement Postings Iterator Over Bytes
...
Closes fabxc/tsdb#18
2017-03-26 23:40:12 +05:30
Goutham Veeramachaneni
61f866bb94
Add Sample Back
...
The compilation and tests are broken as head.go requires sample which
has been moved to another package while moving BufferedSeriesIterator.
Duplication seemed better compared to exposing sample from tsdbutil.
2017-03-26 23:22:58 +05:30
Julius Volz
3f23aa2cc7
Add headers to indicate remote read/write version
...
Also add Content-Type header.
2017-03-24 17:39:51 +01:00
Fabian Reinartz
3be4ef94ce
Move BufferedSeriesIterator in own package
...
This functionality is useful for a lot of clients but not relevant to
the TSDB's core features.
2017-03-24 13:23:32 +01:00
Fabian Reinartz
f85d89abc0
Move BufferedSeriesIterator in own package
...
This functionality is useful for a lot of clients but not relevant to
the TSDB's core features.
2017-03-24 10:20:39 +01:00
Fabian Reinartz
a2e7b0b934
venodr: update tsdb and go-kit/log
2017-03-23 18:44:15 +01:00
Fabian Reinartz
e478d0e3bc
Actually close olds blocks in reloadBlocks
...
This fixes a bug leaking memory because blocks were not actually closed
as the closing call references the initial, empty slice
2017-03-23 18:27:20 +01:00
Tobias Schmidt
6dbd779099
Merge pull request #2519 from prometheus/update-arch-diag-link
...
Update architecture diagram link
2017-03-23 14:18:38 +02:00
Julius Volz
a20105ddb0
Update architecture diagram link
2017-03-23 13:16:54 +01:00
Julius Volz
c34257d069
Merge pull request #2518 from prometheus/update-arch-diag
...
Remove PromDash from architecture diagram
2017-03-23 13:13:14 +01:00
Julius Volz
428e1ad42c
Remove PromDash from architecture diagram
2017-03-23 13:11:05 +01:00
Björn Rabenstein
ddcf04a768
Merge pull request #2515 from leitzler/leitzler-patch-1
...
Use go env to fetch GOPATH to support Go 1.8
2017-03-23 11:58:30 +01:00
Pontus Leitzler
4774d6736a
Use go env to fetch GOPATH to support Go 1.8
...
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
2017-03-22 19:04:20 +01:00
Fabian Reinartz
70909ca8ad
Ensure GC runs after each compactor call
...
GC is triggered rarely, which may cause unnecessarily high memory
spikes when running several compaction cycles in a row. Explicitly run
GC so we don't have idle bytes marked as used from the previous cycle.
2017-03-21 12:21:02 +01:00
Fabian Reinartz
789e8224ff
Fix wrong comparison in head block resorting
2017-03-21 12:12:33 +01:00
Fabian Reinartz
55ee4b5b3b
Merge branch 'master' of github.com:fabxc/tsdb
2017-03-21 10:11:39 +01:00
Fabian Reinartz
c18e055d7c
Fix races and add comments on remaining ones
2017-03-21 10:11:23 +01:00
Fabian Reinartz
d3669bd8b1
Merge pull request #15 from Gouthamve/lint-vet
...
Lint and Vet Fixes
2017-03-21 09:58:45 +01:00
Fabian Reinartz
a4be181d3c
Merge branch 'master' into lint-vet
2017-03-21 09:58:34 +01:00
Fabian Reinartz
e837034360
Merge pull request #14 from Gouthamve/log-update
...
Update kit/log To New API
2017-03-21 09:56:32 +01:00
Julius Volz
8fda83ea12
Make rules only read local data
2017-03-21 00:50:04 +01:00
Julius Volz
94acd3f1d8
Add fanin tests and fix uncovered bugs
2017-03-21 00:08:17 +01:00
Fabian Reinartz
9c93f8f2aa
Fix various races
...
This fixes different race condition encoutnered when running Prometheus.
It reduces the overall performance in the synthetic benchmark a fair bit
but has no indiciations of impacting a real-world setup notably.
2017-03-20 14:45:27 +01:00
Julius Volz
9b33cfc457
Fix/unify context-based remote storage timeouts
2017-03-20 14:17:06 +01:00
Julius Volz
815762a4ad
Move retrieval.NewHTTPClient -> httputil.NewClientFromConfig
2017-03-20 14:17:04 +01:00
Fabian Reinartz
397f001ac5
Merge branch 'master' into dev-2.0
2017-03-20 14:12:11 +01:00
Fabian Reinartz
fc2e56c13f
vendor: update tsdb
2017-03-20 14:07:25 +01:00
Julius Volz
eb14678a25
Make remote read/write use config.HTTPClientConfig
2017-03-20 13:37:50 +01:00
Julius Volz
406b65d0dc
Rename remote.Storage to remote.Writer
2017-03-20 13:15:28 +01:00
Julius Volz
02395a224d
[WIP] Remote Read
2017-03-20 13:13:44 +01:00
Julius Volz
40e41a4776
Merge pull request #2494 from tomwilkie/remote-write-sharding
...
Dynamically reshard the QueueManager based on observed load.
2017-03-20 12:45:17 +01:00
Julius Volz
525da88c35
Merge pull request #2479 from YKlausz/consul-tls
...
Adding consul capability to connect via tls
2017-03-20 11:40:18 +01:00
Fabian Reinartz
2ef3682560
Hotfix erroneous "label index missing" error
2017-03-20 11:37:06 +01:00
Fabian Reinartz
3635569257
Trigger reload correctly on interrupted compaction
2017-03-20 10:41:43 +01:00
Fabian Reinartz
2c999836fb
Add Queryable interface to Block
...
This adds the Queryable interface to the Block interface. Head and
persisted blocks now implement their own Querier() method and thus
isolate customization (e.g. remapPostings) more cleanly.
2017-03-20 10:21:21 +01:00
Fabian Reinartz
11be2cc585
Add composed Block interfaces, remove head generation
...
This adds more lower-leve interfaces which are used to compose
to different Block interfaces.
The DB only uses interfaces instead of explicit persistedBlock and
headBlock. The headBlock generation property is dropped as the use-case
can be implemented using block sequence numbers.
2017-03-20 09:02:36 +01:00
Fabian Reinartz
0958c83d5d
Merge pull request #2511 from prometheus/fix-go-build
...
Only truncate buildVersion if it's set
2017-03-20 08:46:57 +01:00
Julius Volz
107c33545b
Don't truncate build version
2017-03-19 18:37:23 +01:00
Goutham Veeramachaneni
761e4768f3
Lint and Vet Fixes
2017-03-19 21:35:01 +05:30
Goutham Veeramachaneni
df7db4ac07
Update kit/log To New API
...
NewContext has been removed couple of weeks back.
Ref: https://github.com/go-kit/kit/releases/tag/v0.4.0
2017-03-19 21:03:09 +05:30
Fabian Reinartz
303a4ec3bc
Sync directory on retention delation
2017-03-19 13:50:35 +01:00
Goutham Veeramachaneni
5c89cec65c
Stricter Relabel Config Checking for Labeldrop/keep ( #2510 )
...
* Minor code cleanup
* Labeldrop/Labelkeep Now *Only* Support Regex
Ref promtheus/prometheus#2368
2017-03-18 22:32:08 +01:00
Robson Roberto Souza Peixoto
cc3e859d9e
Add support for multiple ports in Marathon ( #2506 )
...
- create a target for every port
- add meta labels for Marathon labels in portMappings and portDefinitions
2017-03-18 22:10:44 +02:00
yklausz
75880b594f
Adding consul capability to connect via tls
2017-03-17 22:37:18 +01:00
Fabian Reinartz
c389193b37
Merge branch 'master' into dev-2.0
2017-03-17 16:27:07 +01:00
Fabian Reinartz
b586781283
*: update tsdb vendoring and add retention flag
2017-03-17 16:06:04 +01:00
Fabian Reinartz
863d38dfee
Fix unreturned lock
2017-03-17 15:56:19 +01:00
Fabian Reinartz
d0770302ed
Add retention deletion
2017-03-17 15:30:05 +01:00
Fabian Reinartz
4962175218
Fix deadlock between heads and headmtx
...
With hundreds of concurrent appenders the locking order between the
headBlocks on instantiating appenders and write locking the headmtx
is hard to impossible to get consistent.
Just never instantiate appenders while holding the headmtx lock in any
way.
2017-03-17 14:10:18 +01:00
Fabian Reinartz
65b846ae5b
Remove unreturned locks, detect writes on closed heads
2017-03-17 12:12:50 +01:00