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

Allow configuring Prometheus port #10

Open
perlfisch opened this issue May 31, 2023 · 1 comment
Open

Allow configuring Prometheus port #10

perlfisch opened this issue May 31, 2023 · 1 comment

Comments

@perlfisch
Copy link

perlfisch commented May 31, 2023

Prometheus is currently hard coded to start on port 9090. I already have JBV running on this port, which is it's documented default, so excalidraw-backend fails to start.

Obviously I can change the port of JVB, but the ability to configure the prometheus port or allow disabling prometheus entirely would be nice.

@RustyDust
Copy link

For a quick fix use:

--- src/index.ts.org	2023-06-14 16:11:09
+++ src/index.ts	2023-06-14 16:08:21
@@ -43,7 +43,8 @@
 // listens on host:9090/metrics
 prometheus.metrics(io, {
-    collectDefaultMetrics: true
+    collectDefaultMetrics: true,
+    port: 9190
 });

And change the port to what you like it to be.

aptiko added a commit to aptiko/excalidraw-backend that referenced this issue Dec 22, 2024
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

No branches or pull requests

2 participants