Skip to content

Commit d6de837

Browse files
Add bucket prefix to experimental features (#1951)
* Add bucket prefix to experimental features Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * Update flag status of storage_prefix to experimental Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
1 parent b21bcfc commit d6de837

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* [ENHANCEMENT] Store-gateway: Add the experimental ability to run requests in a dedicated OS thread pool. This feature can be configured using `-store-gateway.thread-pool-size` and is disabled by default. Replaces the ability to run index header operations in a dedicated thread pool. #1660 #1812
2222
* [ENHANCEMENT] Improved error messages to make them easier to understand; each now have a unique, global identifier that you can use to look up in the runbooks for more information. #1907 #1919 #1888 #1939
2323
* [ENHANCEMENT] Memberlist KV: incoming messages are now processed on per-key goroutine. This may reduce loss of "maintanance" packets in busy memberlist installations, but use more CPU. New `memberlist_client_received_broadcasts_dropped_total` counter tracks number of dropped per-key messages. #1912
24-
* [ENHANCEMENT] Blocks Storage, Alertmanager, Ruler: add support a prefix to the bucket store (`*_storage.storage_prefix`). This enables using the same bucket for the three components. #1686
24+
* [ENHANCEMENT] Blocks Storage, Alertmanager, Ruler: add support a prefix to the bucket store (`*_storage.storage_prefix`). This enables using the same bucket for the three components. #1686 #1951
2525
* [BUGFIX] Fix regexp parsing panic for regexp label matchers with start/end quantifiers. #1883
2626
* [BUGFIX] Ingester: fixed deceiving error log "failed to update cached shipped blocks after shipper initialisation", occurring for each new tenant in the ingester. #1893
2727
* [BUGFIX] Ring: fix bug where instances may appear unhealthy in the hash ring web UI even though they are not. #1933

cmd/mimir/config-descriptor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3795,7 +3795,7 @@
37953795
"fieldDefaultValue": "",
37963796
"fieldFlag": "blocks-storage.storage-prefix",
37973797
"fieldType": "string",
3798-
"fieldCategory": "advanced"
3798+
"fieldCategory": "experimental"
37993799
},
38003800
{
38013801
"kind": "block",
@@ -7588,7 +7588,7 @@
75887588
"fieldDefaultValue": "",
75897589
"fieldFlag": "ruler-storage.storage-prefix",
75907590
"fieldType": "string",
7591-
"fieldCategory": "advanced"
7591+
"fieldCategory": "experimental"
75927592
},
75937593
{
75947594
"kind": "block",
@@ -8906,7 +8906,7 @@
89068906
"fieldDefaultValue": "",
89078907
"fieldFlag": "alertmanager-storage.storage-prefix",
89088908
"fieldType": "string",
8909-
"fieldCategory": "advanced"
8909+
"fieldCategory": "experimental"
89108910
},
89118911
{
89128912
"kind": "block",

cmd/mimir/help-all.txt.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Usage of ./cmd/mimir/mimir:
6767
-alertmanager-storage.s3.tls-handshake-timeout duration
6868
Maximum time to wait for a TLS handshake. 0 means no limit. (default 10s)
6969
-alertmanager-storage.storage-prefix string
70-
Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
70+
[experimental] Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
7171
-alertmanager-storage.swift.auth-url string
7272
OpenStack Swift authentication URL
7373
-alertmanager-storage.swift.auth-version int
@@ -438,7 +438,7 @@ Usage of ./cmd/mimir/mimir:
438438
-blocks-storage.s3.tls-handshake-timeout duration
439439
Maximum time to wait for a TLS handshake. 0 means no limit. (default 10s)
440440
-blocks-storage.storage-prefix string
441-
Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
441+
[experimental] Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
442442
-blocks-storage.swift.auth-url string
443443
OpenStack Swift authentication URL
444444
-blocks-storage.swift.auth-version int
@@ -1299,7 +1299,7 @@ Usage of ./cmd/mimir/mimir:
12991299
-ruler-storage.s3.tls-handshake-timeout duration
13001300
Maximum time to wait for a TLS handshake. 0 means no limit. (default 10s)
13011301
-ruler-storage.storage-prefix string
1302-
Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
1302+
[experimental] Prefix for all objects stored in the backend storage. For simplicity, it may only contain digits and English alphabet letters.
13031303
-ruler-storage.swift.auth-url string
13041304
OpenStack Swift authentication URL
13051305
-ruler-storage.swift.auth-version int

docs/sources/operators-guide/configuring/about-versioning.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ The following features are currently experimental:
8282
- `-query-scheduler.querier-forget-delay`
8383
- Store-gateway
8484
- `-blocks-storage.bucket-store.index-header-thread-pool-size`
85+
- Blocks Storage, Alertmanager, and Ruler support for partitioning access to the same storage bucket
86+
- `-alertmanager-storage.storage-prefix`
87+
- `-blocks-storage.storage-prefix`
88+
- `-ruler-storage.storage-prefix`
8589

8690
## Deprecated features
8791

docs/sources/operators-guide/configuring/reference-configuration-parameters/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ The `ruler_storage` block configures the ruler storage backend.
14881488
# CLI flag: -ruler-storage.backend
14891489
[backend: <string> | default = "filesystem"]
14901490
1491-
# (advanced) Prefix for all objects stored in the backend storage. For
1491+
# (experimental) Prefix for all objects stored in the backend storage. For
14921492
# simplicity, it may only contain digits and English alphabet letters.
14931493
# CLI flag: -ruler-storage.storage-prefix
14941494
[storage_prefix: <string> | default = ""]
@@ -1938,7 +1938,7 @@ The `alertmanager_storage` block configures the alertmanager storage backend.
19381938
# CLI flag: -alertmanager-storage.backend
19391939
[backend: <string> | default = "filesystem"]
19401940
1941-
# (advanced) Prefix for all objects stored in the backend storage. For
1941+
# (experimental) Prefix for all objects stored in the backend storage. For
19421942
# simplicity, it may only contain digits and English alphabet letters.
19431943
# CLI flag: -alertmanager-storage.storage-prefix
19441944
[storage_prefix: <string> | default = ""]
@@ -2942,7 +2942,7 @@ The `blocks_storage` block configures the blocks storage.
29422942
# CLI flag: -blocks-storage.backend
29432943
[backend: <string> | default = "filesystem"]
29442944
2945-
# (advanced) Prefix for all objects stored in the backend storage. For
2945+
# (experimental) Prefix for all objects stored in the backend storage. For
29462946
# simplicity, it may only contain digits and English alphabet letters.
29472947
# CLI flag: -blocks-storage.storage-prefix
29482948
[storage_prefix: <string> | default = ""]

pkg/storage/bucket/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var (
5656
// Config holds configuration for accessing long-term storage.
5757
type Config struct {
5858
Backend string `yaml:"backend"`
59-
StoragePrefix string `yaml:"storage_prefix" category:"advanced"`
59+
StoragePrefix string `yaml:"storage_prefix" category:"experimental"`
6060
// Backends
6161
S3 s3.Config `yaml:"s3"`
6262
GCS gcs.Config `yaml:"gcs"`

0 commit comments

Comments
 (0)