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
Sidecar: failed to fetch initial external labels. unknown unit #4656
Comments
It could be fixed by only unmarshal global config. I am fixing it. |
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <hanjinming@outlook.com>
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <hanjinming@outlook.com>
Let's add Prometheus 2.29.2 version to our E2E test so that we can catch the error in CI. |
Yes, It will be great. but i see this TODO https://github.com/thanos-io/thanos/blob/main/test/e2e/e2ethanos/services.go#L44 |
OK. I see, it should be unit tests running by Circle CI. I think that supports different Prometheus versions. As for E2E tests with multiple Prometheus versions, is it supported by the new E2E framework? cc @matej-g @bwplotka |
If I understand the question correctly, this should be already possible - have a look at signature of |
This way could only run single test which use specific promImage, not all the E2E test about |
Do we want to run all the E2E tests against multiple versions of Prometheus? I guess then we could just pass environment variable with Prometheus version we desire and replace the image version (similarly to what we do for Thanos - https://github.com/matej-g/thanos/blob/main/test/e2e/e2ethanos/services.go#L54). I don't think there is any such feature 'baked' into the E2E framework. |
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <hanjinming@outlook.com>
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <hanjinming@outlook.com>
* Sidecar: Fix process external label on promethues v2.28+ use units.Bytes config type (#4657) * Sidecar: Fix process external label when promethues v2.28+ use units.Bytes config type (#4656) Signed-off-by: hanjm <hanjinming@outlook.com> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <hanjinming@outlook.com> * upgrade Prometheus dependency version to v2.30.0 (#4669) * upgrade Prometheus dependency version to v2.30.0 Signed-off-by: Ben Ye <ben.ye@bytedance.com> * fix unit test Signed-off-by: Ben Ye <ben.ye@bytedance.com> # Conflicts: # go.mod # go.sum * Query: Fix (*exemplarsStream).receive/(*metricMetadataStream).receive/(*targetsStreamStream).receive infinite loop when target response Unimplemented error (#4676) (#4681) Signed-off-by: hanjm <hanjinming@outlook.com> * Cut 0.23.0-rc.1 Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Co-authored-by: Jimmiehan <hanjinming@outlook.com> Co-authored-by: Ben Ye <yb532204897@gmail.com>
* Cut release 0.23.0-rc.0 (#4625) Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> * Updated version. Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> * Cut 0.23.0-rc.1 and cherry picked 3 critical commits from main. (#4684) * Sidecar: Fix process external label on promethues v2.28+ use units.Bytes config type (#4657) * Sidecar: Fix process external label when promethues v2.28+ use units.Bytes config type (#4656) Signed-off-by: hanjm <hanjinming@outlook.com> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <hanjinming@outlook.com> * upgrade Prometheus dependency version to v2.30.0 (#4669) * upgrade Prometheus dependency version to v2.30.0 Signed-off-by: Ben Ye <ben.ye@bytedance.com> * fix unit test Signed-off-by: Ben Ye <ben.ye@bytedance.com> # Conflicts: # go.mod # go.sum * Query: Fix (*exemplarsStream).receive/(*metricMetadataStream).receive/(*targetsStreamStream).receive infinite loop when target response Unimplemented error (#4676) (#4681) Signed-off-by: hanjm <hanjinming@outlook.com> * Cut 0.23.0-rc.1 Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Co-authored-by: Jimmiehan <hanjinming@outlook.com> Co-authored-by: Ben Ye <yb532204897@gmail.com> * Cut 0.23.0 release. (#4697) * Endpointset: Do not use info client to obtain metadata (for now) (#4714) * Do not use info client to obtain metadata Signed-off-by: Matej Gera <matejgera@gmail.com> * Update CHANGELOG. Signed-off-by: Matej Gera <matejgera@gmail.com> * Comment out client.info usage Signed-off-by: Matej Gera <matejgera@gmail.com> * Fix lint error Signed-off-by: Matej Gera <matejgera@gmail.com> * Cutting 0.23.1 (#4718) Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> * Moved tutorials Thanos versions to 0.23.1 Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> * Added volounteer for shepharding, fixed VERSION. Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Co-authored-by: Jimmiehan <hanjinming@outlook.com> Co-authored-by: Ben Ye <yb532204897@gmail.com> Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
…tes config type (thanos-io#4657) * Sidecar: Fix process external label when promethues v2.28+ use units.Bytes config type (thanos-io#4656) Signed-off-by: hanjm <hanjinming@outlook.com> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <hanjinming@outlook.com>
Thanos, Prometheus and Golang version used:
Object Storage Provider:
COS
What happened:
thanos sidecar can not start up.
error message is
prometheus new version instroduce a exempriment config field
body_size_limit
, the type isunits. Base2Bytes
(https://github.com/alecthomas/units). it implementtext.TextUnmarshaler
but not umplementtext.TextMarshaler
(https://github.com/alecthomas/units/blob/master/bytes.go#L43).so the marshalled config content can not be marshalled.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Prometheus 2.29.2 + Thanos v0.23.0-rc.0
Full logs to relevant components:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: