Thanos objstore supports Tencent Cloud Object Storage (COS provider). Add it as a Cortex storage backend for blocks, ruler, and alertmanager storage.
Implementation steps
- Create
pkg/storage/bucket/cos/config.go — Config struct with RegisterFlagsWithPrefix()
- Create
pkg/storage/bucket/cos/bucket_client.go — Thin wrapper around objstore/providers/cos
- Register in
pkg/storage/bucket/client.go — Add constant, config field, and NewClient() case
- Vendor the COS provider and Tencent Cloud SDK
- Add unit tests and CHANGELOG entry
Thanos objstore supports Tencent Cloud Object Storage (
COSprovider). Add it as a Cortex storage backend for blocks, ruler, and alertmanager storage.Implementation steps
pkg/storage/bucket/cos/config.go— Config struct withRegisterFlagsWithPrefix()pkg/storage/bucket/cos/bucket_client.go— Thin wrapper aroundobjstore/providers/cospkg/storage/bucket/client.go— Add constant, config field, andNewClient()case