Skip to content

Commit 9cd2d8b

Browse files
committed
fix: disable Prometheus metrics endpoint by default
BREAKING CHANGE: Prometheus metrics endpoint is now disabled by default and must be explicitly enabled. Changes: - Set prometheus_enabled to false in config.exs (was true) - Prevents port 9568 conflict errors when running multiple instances - Must explicitly enable in config to expose metrics endpoint This prevents the 'eaddrinuse' error when port 9568 is already in use and allows Concord to be used as an embedded library without the Prometheus overhead. To enable Prometheus metrics: - Set prometheus_enabled: true in your config - Or set CONCORD_PROMETHEUS_ENABLED=true environment variable
1 parent 04bc971 commit 9cd2d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/config.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ config :concord,
5050
# TLS versions to support (default: TLS 1.2 and 1.3)
5151
versions: [:"tlsv1.2", :"tlsv1.3"]
5252
],
53-
# Prometheus metrics configuration
54-
prometheus_enabled: true,
53+
# Prometheus metrics configuration (disabled by default)
54+
prometheus_enabled: false,
5555
prometheus_port: 9568,
5656
# OpenTelemetry distributed tracing configuration
5757
# Enable distributed tracing

0 commit comments

Comments
 (0)