Disable metrics by default

This commit is contained in:
Owen
2026-01-18 15:20:13 -08:00
parent daa1a90e05
commit 43e1341352

View File

@@ -344,7 +344,7 @@ func runNewtMain(ctx context.Context) {
// Metrics/observability flags (mirror ENV if unset) // Metrics/observability flags (mirror ENV if unset)
if metricsEnabledEnv == "" { if metricsEnabledEnv == "" {
flag.BoolVar(&metricsEnabled, "metrics", true, "Enable Prometheus /metrics exporter") flag.BoolVar(&metricsEnabled, "metrics", false, "Enable Prometheus metrics exporter")
} else { } else {
if v, err := strconv.ParseBool(metricsEnabledEnv); err == nil { if v, err := strconv.ParseBool(metricsEnabledEnv); err == nil {
metricsEnabled = v metricsEnabled = v