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

Improve packaging start commands #4810

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

wilfriedroset
Copy link
Collaborator

What this PR does

Currently mimir is started by systemd with the following command:

/usr/local/bin/mimir --log.level $LOG_LEVEL $CUSTOM_ARGS.

Notice there is not configuration file. It would be more straighforward
for the users to have a command with configuration files like this:

/usr/local/bin/mimir --config.file=/etc/mimir/config.yml --runtime-config.file=/etc/mimir/runtime_config.yml --log.level $LOG_LEVEL $CUSTOM_ARGS

$LOG_LEVEL and $CUSTOM_ARGS comes from /etc/default/mimir doing so
adds flexibility but scatter the configuration all over the place.

Generally the configuration is located in a single file. This single
file delivered by the package could be extremely simple or even empty
with a like to the configuration.

Which issue(s) this PR fixes or relates to

N/A

Checklist

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

@wilfriedroset wilfriedroset marked this pull request as ready for review April 21, 2023 13:48
@wilfriedroset wilfriedroset requested review from vaxvms, bubu11e and a team as code owners April 21, 2023 13:48
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM but I'll let one of the packaging maintainers chime in.

Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

lgtm

… to start mimir with a configuration file.

Currently mimir is started by systemd with the following command:

`/usr/local/bin/mimir --log.level $LOG_LEVEL $CUSTOM_ARGS`.

Notice there is not configuration file. It would be more straighforward
for the users to have a command with configuration files like this:

`/usr/local/bin/mimir --config.file=/etc/mimir/config.yml --runtime-config.file=/etc/mimir/runtime_config.yml --log.level $LOG_LEVEL $CUSTOM_ARGS`

`$LOG_LEVEL` and `$CUSTOM_ARGS` comes from `/etc/default/mimir` doing so
adds flexibility but scatter the configuration all over the place.

Generally the configuration is located in a single file. This single
file delivered by the package could be extremely simple or even empty
with a like to the configuration.

Signed-off-by: Wilfried Roset <wilfriedroset@users.noreply.github.com>
@56quarters 56quarters merged commit 4b654b4 into grafana:main Apr 27, 2023
19 checks passed
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.

None yet

4 participants