Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backmerging #1

Merged
merged 18 commits into from Mar 5, 2019
Merged

backmerging #1

merged 18 commits into from Mar 5, 2019

Conversation

davtsur
Copy link
Owner

@davtsur davtsur commented Mar 5, 2019

Changes

Verification

dependabot bot and others added 18 commits February 18, 2019 10:57
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](pkg/errors@v0.8.0...v0.8.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
* ran make

* fmt fmt fmt
Bumps [github.com/grpc-ecosystem/go-grpc-prometheus](https://github.com/grpc-ecosystem/go-grpc-prometheus) from `93bf462` to `68e3a13`.
- [Release notes](https://github.com/grpc-ecosystem/go-grpc-prometheus/releases)
- [Commits](grpc-ecosystem/go-grpc-prometheus@93bf462...68e3a13)

Signed-off-by: dependabot[bot] <support@dependabot.com>
* updating version

* remove new line
…862)

Fixes #833

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
* Removed old kube manifests with updated k8s tutorial based on demo.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Updated kubernetes-demo manifests to use improbable/thanos:v0.3.0 docker image instead of the rc. (#827)

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>

* Fixed links.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Improved docs (#840)

* Updated kubernetes-demo manifests to use improbable/thanos:v0.3.0 docker image instead of the rc.

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>

* renamed thanos-gateway to thanos-store-gateway and fixed headless servicename in order to resolve dns.

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>

* Updated docs/getting_started.md path for manifests/thanos-store-gateway.yaml

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
Otherwise we can end up being in starvation. Reloader is trying to create config for Prometheus and
shipper fails before that because Prometheus is not up.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
* Update README.md

* Update README.md

* Update README.md
* Adding new API end point for rules and alerts

* reusing methods in query api

* Adding unitest for rule API (similar to prometheus rule/alert API end point unitest)

* Adding SetCORS

* Removing comments

* Related to issue #850
…873)

* store/cache: do not forget to increase c.current on adding new items

* store/cache: properly adjust c.curSize

* store/cache: prevent uint64 overflow by switching operands

Adding uint64(len(b)) to c.curSize might potentially overflow uint64 if
the numbers are big enough and then we might not remove enough items
from the LRU to satisfy the request. On the other hand, switching the
operands avoids this problem because we check before if uint64(len(b))
is bigger than c.maxSize so subtracting uint64(len(b)) will *never*
overflow because we know that it is less or equal to c.maxSize.

* store/cache: revert ensureFits() changes

c.curSize is lowered in onEvict.

* store/cache: add smoke tests

Add smoke tests for the index cache which check if we set curSize
properly, and if removal works.
Make it more clear what the Prometheus command line flags should be for sidecar use.
It is possible that Prometheus will produce time series with duplicate
labels. E.g.: a{b="2",b="2"} 1

Where such metric is pushed to Prometheus either wittingly or
unwittingly, the compact process will stall because the check will not
pass. For example:

{"caller":"main.go:181","err":"error executing compaction: compaction failed: compaction: gather index issues for block /data/compact/0@{monitor="monitor",replica="repl"}/01D34EDQMSQ29RHAC47XGKHGC7: out-of-order label set {**name**="foo",exported_job="vv",host="172_16_226_56",host="172_16_226_56",region="lt",subtask_index="5",task_attempt_id="32e4b047bb768583ff57c709be3b1046",task_attempt_num="8",task_id="688c028a219ff3372f3eecb0ee5811f9",task_name="Source:_foo",tenant="abc",tier="cooltier",tm_id="53b2ed987b08f427dec4ee1465df91fa"} for series 2594231","level":"error","msg":"running command failed","ts":"2019-02-11T13:30:33.901722306Z"}

This commit fixes the mentioned issue. Amend the e2e test to test the
case when a series has identical labels.
* add concurrency to meta sync

* fix test

* update docs

* address cr

* use sentinel error to handle ignoring fresh blocks
@davtsur davtsur merged commit 1ae9423 into davtsur:master Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants