mirror of
https://github.com/fosrl/newt.git
synced 2026-02-07 21:46:39 +00:00
Disable metrics by default
This commit is contained in:
2
main.go
2
main.go
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user