-
Notifications
You must be signed in to change notification settings - Fork 569
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
ruler: Make alertmanager client and all related config per-tenant configurable #10816
Open
alexweav
wants to merge
15
commits into
main
Choose a base branch
from
alexweav/tenant-notifier-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1596710
Extract notifier config, introduce alertmanager client config
alexweav fdf3c22
Wire up notifier config per tenant
alexweav e2be10c
Tests and fix initialization
alexweav 0ba0239
Improve comparison, add hash
alexweav 3c3be9b
Build user specific notifier if limits provided
alexweav f81d974
Build user specific config
alexweav ad628ed
generate docs
alexweav 4a278d0
Adjust and debug wrong levelled flags in docs generator, use a workar…
alexweav 7e5b393
lint
alexweav f8fd2e3
license header
alexweav 1276bfd
Tests for notifier config
alexweav 346608c
lint
alexweav 85a7c82
Add integration test
alexweav 69b8e92
lint
alexweav 1fc443c
changelog
alexweav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3881,6 +3881,84 @@ The `limits` block configures default and per-tenant limits imposed by component | |||||
# CLI flag: -ruler.max-independent-rule-evaluation-concurrency-per-tenant | ||||||
[ruler_max_independent_rule_evaluation_concurrency_per_tenant: <int> | default = 4] | ||||||
|
||||||
# Per-tenant alertmanager client configuration. If not supplied, the tenant's | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
# notifications will be sent to the ruler-wide default. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
ruler_alertmanager_client_config: | ||||||
[alertmanager_url: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_enabled: <boolean> | default = ] | ||||||
|
||||||
# (advanced) | ||||||
[tls_cert_path: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_key_path: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_ca_path: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_server_name: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_insecure_skip_verify: <boolean> | default = ] | ||||||
|
||||||
# (advanced) Override the default cipher suite list (separated by commas). | ||||||
# Allowed values: | ||||||
# | ||||||
# Secure Ciphers: | ||||||
# - TLS_AES_128_GCM_SHA256 | ||||||
# - TLS_AES_256_GCM_SHA384 | ||||||
# - TLS_CHACHA20_POLY1305_SHA256 | ||||||
# - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA | ||||||
# - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA | ||||||
# - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA | ||||||
# - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA | ||||||
# - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 | ||||||
# - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 | ||||||
# - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | ||||||
# - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||||||
# - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | ||||||
# - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 | ||||||
# | ||||||
# Insecure Ciphers: | ||||||
# - TLS_RSA_WITH_RC4_128_SHA | ||||||
# - TLS_RSA_WITH_3DES_EDE_CBC_SHA | ||||||
# - TLS_RSA_WITH_AES_128_CBC_SHA | ||||||
# - TLS_RSA_WITH_AES_256_CBC_SHA | ||||||
# - TLS_RSA_WITH_AES_128_CBC_SHA256 | ||||||
# - TLS_RSA_WITH_AES_128_GCM_SHA256 | ||||||
# - TLS_RSA_WITH_AES_256_GCM_SHA384 | ||||||
# - TLS_ECDHE_ECDSA_WITH_RC4_128_SHA | ||||||
# - TLS_ECDHE_RSA_WITH_RC4_128_SHA | ||||||
# - TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA | ||||||
# - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 | ||||||
# - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 | ||||||
[tls_cipher_suites: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[tls_min_version: <string> | default = ""] | ||||||
|
||||||
[basic_auth_username: <string> | default = ""] | ||||||
|
||||||
basic_auth_password: | ||||||
|
||||||
oauth2: | ||||||
[client_id: <string> | default = ""] | ||||||
|
||||||
client_secret: | ||||||
|
||||||
[token_url: <string> | default = ""] | ||||||
|
||||||
[scopes: <string> | default = ""] | ||||||
|
||||||
# (advanced) | ||||||
[endpoint_params: <map of string to string> | default = ] | ||||||
|
||||||
# (advanced) | ||||||
[proxy_url: <string> | default = ""] | ||||||
|
||||||
# The tenant's shard size, used when store-gateway sharding is enabled. Value of | ||||||
# 0 disables shuffle sharding for the tenant, that is all tenant blocks are | ||||||
# sharded across all store-gateway replicas. | ||||||
|
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.