-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 <[email protected]>
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <[email protected]>
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 <[email protected]>
…Bytes config type (thanos-io#4656) Signed-off-by: hanjm <[email protected]>
…tes config type (#4657) * Sidecar: Fix process external label when promethues v2.28+ use units.Bytes config type (#4656) Signed-off-by: hanjm <[email protected]> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <[email protected]>
…tes config type (#4657) * Sidecar: Fix process external label when promethues v2.28+ use units.Bytes config type (#4656) Signed-off-by: hanjm <[email protected]> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <[email protected]>
* 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 <[email protected]> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <[email protected]> * upgrade Prometheus dependency version to v2.30.0 (#4669) * upgrade Prometheus dependency version to v2.30.0 Signed-off-by: Ben Ye <[email protected]> * fix unit test Signed-off-by: Ben Ye <[email protected]> # 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 <[email protected]> * Cut 0.23.0-rc.1 Signed-off-by: Bartlomiej Plotka <[email protected]> Co-authored-by: Jimmiehan <[email protected]> Co-authored-by: Ben Ye <[email protected]>
* Cut release 0.23.0-rc.0 (#4625) Signed-off-by: Bartlomiej Plotka <[email protected]> * Updated version. Signed-off-by: Bartlomiej Plotka <[email protected]> * 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 <[email protected]> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <[email protected]> * upgrade Prometheus dependency version to v2.30.0 (#4669) * upgrade Prometheus dependency version to v2.30.0 Signed-off-by: Ben Ye <[email protected]> * fix unit test Signed-off-by: Ben Ye <[email protected]> # 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 <[email protected]> * Cut 0.23.0-rc.1 Signed-off-by: Bartlomiej Plotka <[email protected]> Co-authored-by: Jimmiehan <[email protected]> Co-authored-by: Ben Ye <[email protected]> * 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 <[email protected]> * Update CHANGELOG. Signed-off-by: Matej Gera <[email protected]> * Comment out client.info usage Signed-off-by: Matej Gera <[email protected]> * Fix lint error Signed-off-by: Matej Gera <[email protected]> * Cutting 0.23.1 (#4718) Signed-off-by: Bartlomiej Plotka <[email protected]> * Moved tutorials Thanos versions to 0.23.1 Signed-off-by: Bartlomiej Plotka <[email protected]> * Added volounteer for shepharding, fixed VERSION. Signed-off-by: Bartlomiej Plotka <[email protected]> Co-authored-by: Jimmiehan <[email protected]> Co-authored-by: Ben Ye <[email protected]> Co-authored-by: Matej Gera <[email protected]>
…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 <[email protected]> * E2E: Upgrade prometheus image version Signed-off-by: hanjm <[email protected]>
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: