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

cortex: Define Azure object storage ruler args #416

Merged
merged 2 commits into from
Nov 15, 2021
Merged

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Nov 9, 2021

What this PR does:
Define ruler object storage arguments for Azure.

Which issue(s) this PR fixes:

Checklist

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

@aknuds1 aknuds1 changed the title cortex: Define Azure ruler args cortex: Define Azure object storage ruler args Nov 9, 2021
@aknuds1 aknuds1 marked this pull request as ready for review November 9, 2021 18:21
@aknuds1 aknuds1 requested a review from a team as a code owner November 9, 2021 18:21
@aknuds1 aknuds1 added the enhancement New feature or request label Nov 9, 2021
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Comment on lines 262 to 264
'ruler-storage.azure.container-name': '%(cluster)s-%(namespace)s-ruler' % $._config,
'ruler-storage.azure.account-name': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_NAME)',
'ruler-storage.azure.account-key': '$(BLOCKS_STORAGE_AZURE_ACCOUNT_KEY)',
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should all be configurable. Not autogenerated (and what's BLOCKS_STORAGE_AZURE_ACCOUNT_NAME?):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pracucci OK, looking into it.

Copy link
Member

Choose a reason for hiding this comment

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

For my understanding, when you say "should be configurable", do you mean that they should exist as fields in the _config object?

The values BLOCKS_STORAGE_AZURE.* look like Kubernetes environment variables but I'm not sure how they are getting to the Pod spec. Is there something special in Azure or is this tbd?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've pushed a revision parameterizing the fields instead.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

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

Looks like all the flags we need. I've double checked for any typos and it looks good to me

@aknuds1
Copy link
Contributor Author

aknuds1 commented Nov 10, 2021

I've tested the latest revision FWIW, and it looks good.

@pracucci pracucci merged commit 6941468 into main Nov 15, 2021
@pracucci pracucci deleted the chore/azure-ruler branch November 15, 2021 08:58
simonswine pushed a commit to grafana/mimir that referenced this pull request Dec 20, 2021
…e-ruler

cortex: Define Azure object storage ruler args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants