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: allow disabling metrics server, consolidate exit handlers #1201

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

Saghen
Copy link
Collaborator

@Saghen Saghen commented May 28, 2024

The metrics server causes issues in development due to the Sveltekit not allowing us to hook into restarts (as far as I could tell). This allows disabling the metrics server with METRICS_ENABLED=false and a bit of documentation to recommend this setting for development (maybe it should be default?). I've also consolidated the exit handler code to make signal handling more consistent

@Saghen Saghen requested a review from nsarrazin May 28, 2024 18:40
@Saghen Saghen self-assigned this May 28, 2024
@nsarrazin nsarrazin added the back This issue is related to the Svelte backend or the DB label May 30, 2024
Copy link
Collaborator

@nsarrazin nsarrazin left a comment

Choose a reason for hiding this comment

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

Swapped things so that the metrics server is off by default and on in prod, other than that LGTM! Thanks for tackling this 🚀

@nsarrazin nsarrazin merged commit 900a9b3 into main Jul 1, 2024
5 checks passed
@nsarrazin nsarrazin deleted the feat/disable-metrics-server branch July 1, 2024 08:30
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
…ingface#1201)

* feat: allow disabling metrics server, consolidate exit handlers

* Make server off by default, enable in prods, update docs accordingly

---------

Co-authored-by: Nathan Sarrazin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants