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

Fix ruler config in getting started guide #2052

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Jun 8, 2022

What this PR does

#862 made me realized that the getting started guide uses local storage for the ruler, which requires the directory to exists and doesn't support mimirtool to upload rules config. I recommend to switch to filesystem which fixes #862 and also work with mimirtool. I manually tested it.

Which issue(s) this PR fixes or relates to

Fixes #862

Checklist

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

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@@ -103,7 +103,7 @@ In a terminal, run one of the following commands:
- Using Docker:

```bash
docker run --rm --name mimir --publish 9009:9009 --volume "$(pwd)"/demo.yaml:/etc/mimir/demo.yaml grafana/mimir:${MIMIR_LATEST} --config.file=/etc/mimir/demo.yaml
docker run --rm --name mimir --publish 9009:9009 --volume "$(pwd)"/demo.yaml:/etc/mimir/demo.yaml grafana/mimir:latest --config.file=/etc/mimir/demo.yaml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

MIMIR_LATEST environment variable doesn't exist. Since in the previous step we ask to run docker pull grafana/mimir:latest, here we can just use latest.

Signed-off-by: Marco Pracucci <marco@pracucci.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.

Just ran through the demo quickly locally and it worked as expected.

@pracucci pracucci merged commit fa28ccf into main Jun 8, 2022
@pracucci pracucci deleted the fix-ruler-getting-started-guide branch June 8, 2022 09:43
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.

Ruler does not create directories required for operation
2 participants