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

start-all.sh: Validate files in target and support es-linus #2399

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

amnonh
Copy link
Collaborator

@amnonh amnonh commented Sep 22, 2024

This patch address multiple issues when using the --target-directory option.

  1. Fix a documentation bug, that uses the wrong file name for scylla targets.
  2. Add validation step that validate that all target files are inside the directory.
  3. Add an option for SE-Linux to bind the directory correctly.

Fixes #2398

This patch address multiple issues when using the `--target-directory`
option.

1. Fix a documentation bug, that uses the wrong file name for scylla
   targets.
2. Add validation step that validate that all target files are inside
   the directory.
3. Add an option for SE-Linux to bind the directory correctly.

Fixes scylladb#2398

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
@amnonh amnonh merged commit f44d028 into scylladb:master Sep 22, 2024
@amnonh amnonh deleted the bind_target_directory branch September 22, 2024 13:02
if [ ! -f $TARGET_DIRECTORY/node_exporter_servers.yml ]; then
echo "Warning, using $TARGET_DIRECTORY for Prometheus traget directory, node_exporter_servers.yml is missing, make sure to create it, or node-exporter targets will be missing"
fi
if [ ! -f $TARGET_DIRECTORY/scylla_manager_agents.yml ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

If one does not use Manager, this warning is rudendent.
Its look like Prometheus do work without Manager agent or server

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll make the manager optional (or add an option to by pass it) in the future, then it will be ok not to add the files, I'm trying to avoid the situation that something is wrong with the setup but there is no indication to the user

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.

start-all.sh --target-directory option error
2 participants