Skip to content
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

Adding Microsoft Azure Blob storage support for chunks #1913

Merged
merged 3 commits into from
Dec 16, 2019

Conversation

khaines
Copy link
Contributor

@khaines khaines commented Dec 13, 2019

What this PR does: Adds support for Microsoft Azure blob storage to be used for storing data chunks.

Which issue(s) this PR fixes:
Fixes #1234

Checklist

  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@khaines khaines force-pushed the feature/azure-storage branch from 2f33d4e to 547d618 Compare December 13, 2019 22:18
Signed-off-by: Ken Haines <khaines@microsoft.com>
Signed-off-by: Ken Haines <khaines@microsoft.com>
@khaines khaines force-pushed the feature/azure-storage branch from 239b0a5 to e0f7db5 Compare December 13, 2019 22:47
Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Can you also update this line in the README?

- **Long term storage:** Cortex supports Amazon DynamoDB, Google Bigtable, Cassandra, S3 and GCS for long term storage of metric data.  This allows you to durably store data for longer than the lifetime of any single machine, and use this data for long term capacity planning.

Signed-off-by: Ken Haines <khaines@microsoft.com>
const blobURLFmt = "https://%s.blob.core.windows.net/%s/%s"

// BlobStorageConfig defines the configurable flags that can be defined when using azure blob storage.
type BlobStorageConfig struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By convention we use lowercase dash-separated yaml config options (ie. containerName to container_name). May you fix it, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Thanks for calling that out.

@khaines khaines force-pushed the feature/azure-storage branch from 8243f1b to 366eabf Compare December 16, 2019 16:03
@khaines khaines merged commit 2eea178 into cortexproject:master Dec 16, 2019
@khaines khaines deleted the feature/azure-storage branch December 16, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Azure Blob Storage
3 participants