-
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
query, rule: make endpoint discovery dynamically reloadable #7890
Merged
GiedriusS
merged 1 commit into
main
from
mhoffmann/make-endpoint-config-dynamically-reloadable
Jan 15, 2025
Merged
query, rule: make endpoint discovery dynamically reloadable #7890
GiedriusS
merged 1 commit into
main
from
mhoffmann/make-endpoint-config-dynamically-reloadable
Jan 15, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
3 times, most recently
from
November 7, 2024 13:52
7b8c118
to
249620c
Compare
saswatamcode
reviewed
Nov 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it generally makes a lot of sense to me.
Just one small comment!
GiedriusS
reviewed
Nov 8, 2024
GiedriusS
reviewed
Nov 8, 2024
GiedriusS
reviewed
Nov 8, 2024
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
8 times, most recently
from
November 8, 2024 15:55
e57969b
to
963126d
Compare
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
5 times, most recently
from
November 8, 2024 17:44
d5cfc49
to
e9f1ff4
Compare
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
5 times, most recently
from
November 10, 2024 13:36
12a9008
to
529954c
Compare
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
GiedriusS
reviewed
Nov 13, 2024
yeya24
reviewed
Nov 13, 2024
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
from
November 15, 2024 11:31
3284e0d
to
a45ffad
Compare
MichaHoffmann
dismissed stale reviews from fpetkovski and saswatamcode
via
November 15, 2024 11:53
c7dd843
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
from
November 15, 2024 11:53
a45ffad
to
c7dd843
Compare
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
5 times, most recently
from
December 16, 2024 06:17
46475aa
to
a14056f
Compare
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
2 times, most recently
from
December 19, 2024 12:35
38dc0ac
to
ee6f13b
Compare
GiedriusS
previously approved these changes
Jan 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor nits but otherwise LGTM
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
from
January 15, 2025 05:42
ee6f13b
to
bfd9ae6
Compare
* Removed previously deprecated and hidden flags to configure endpoints ( --rule, --target, ...) * Added new flags --endpoint.sd-config, --endpoint-sd-config-reload-interval to configure a dynamic SD file * Moved endpoint set construction into cmd/thanos/endpointset.go for a little cleanup * Renamed "thanos_(querier/ruler)_duplicated_store_addresses_total" to "thanos_(querier/ruler)_duplicated_endpoint_addresses_total" The new config makes it possible to also set "strict" and "group" flags on the endpoint instead of only their addresses, making it possible to have file based service discovery for endpoint groups too. Signed-off-by: Michael Hoffmann <[email protected]> Signed-off-by: Michael Hoffmann <[email protected]>
MichaHoffmann
force-pushed
the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
from
January 15, 2025 05:45
bfd9ae6
to
2455ab1
Compare
GiedriusS
approved these changes
Jan 15, 2025
GiedriusS
deleted the
mhoffmann/make-endpoint-config-dynamically-reloadable
branch
January 15, 2025 14:48
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
--store.sd-file
and--store.sd-interval
flags--endpoint.sd-config
,--endpoint-sd-config-reload-interval
to configure a dynamic SD fileThe new config makes it possible to also set "strict" and "group" flags on the endpoint instead of only their addresses, making it possible to have file based service discovery for endpoint groups too.
Verification
Existing E2E test suite, some manual testing.