You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate alertmanager storage configuration when sharding enabled. (#4162)
* Validate alertmanager storage configuration when sharding enabled.
Storing the "fullstate" objects is not implemented for the "local" and
"configdb" storage backend types, or for the legacy storage
configuration. Check that these are not given when sharding is enabled.
Signed-off-by: Steve Simpson <[email protected]>
* Review comments.
Signed-off-by: Steve Simpson <[email protected]>
Copy file name to clipboardExpand all lines: pkg/alertmanager/multitenant.go
+13-2
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,9 @@ const (
86
86
var (
87
87
statusTemplate*template.Template
88
88
89
-
errInvalidExternalURL=errors.New("the configured external URL is invalid: should not end with /")
89
+
errInvalidExternalURL=errors.New("the configured external URL is invalid: should not end with /")
90
+
errShardingLegacyStorage=errors.New("deprecated -alertmanager.storage.* not supported with -alertmanager.sharding-enabled, use -alertmanager-storage.*")
91
+
errShardingUnsupportedStorage=errors.New("the configured alertmanager storage backend is not supported when sharding is enabled")
0 commit comments