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

feat(vroom): Allow to customize vroom's environment variables in a different file #2866

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Mar 7, 2024

We've had a request to be able to customize vroom's configuration (which is using environment variables) via a file.

Instead of implementing a file based configuration, we can simplify this by loading from a different environment file dedicated to vroom.

SENTRY_KAFKA_BROKERS_OCCURRENCES: "kafka:9092"
SENTRY_BUCKET_PROFILES: file://localhost//var/lib/sentry-profiles
SENTRY_SNUBA_HOST: "http://snuba-api:1218"
env_file:
Copy link
Member

Choose a reason for hiding this comment

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

This will require docker compose v2.24.0+. Which, I think we do want to get to due to how we can use this for docker compose env override files. For now though, for visibility purposes if we're going on this route it seems ok to include these vroom specific env variables into the .env file. I know it's not what you originally envisioned @aldy505, but will that do for now?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I still don't prefer this route, because that would mean there are no unified way to configure sentry services, as people know currently it's been done through config files and it works for most of the deployment models (docker compose, k8s, docker swarm, separate compose file, etc -- it's been told on the community) 😞. But since I'm not 100% of the community's voice here, I'd like to hear about what others (who self-hosted their sentry) )would say about this.

@@ -0,0 +1,4 @@
SENTRY_KAFKA_BROKERS_PROFILING="kafka:9092"
SENTRY_KAFKA_BROKERS_OCCURRENCES="kafka:9092"
SENTRY_BUCKET_PROFILES=file://localhost//var/lib/sentry-profiles
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome !
Looking forward to store profiles on something else than my drive.
it runs out of inodes too quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

4 participants