From 4211f0c65831cd7eeed96b36e0dea727b8e3af61 Mon Sep 17 00:00:00 2001 From: Arpad Kiss Date: Wed, 17 Apr 2024 15:22:50 +0200 Subject: [PATCH] Change envconfig.Usage prefix to 'nsm' Signed-off-by: Arpad Kiss --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 0398c8e..cf0e2b6 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ type Config struct { ProxyRegistryURL url.URL `desc:"url to the proxy registry that handles this domain" split_words:"true"` ExpirePeriod time.Duration `default:"1s" desc:"period to check expired NSEs" split_words:"true"` LogLevel string `default:"INFO" desc:"Log level" split_words:"true"` - OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint"` + OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint" split_words:"true"` MetricsExportInterval time.Duration `default:"10s" desc:"interval between mertics exports" split_words:"true"` } @@ -92,10 +92,10 @@ func main() { // Get config from environment config := &Config{} - if err := envconfig.Usage("registry_memory", config); err != nil { + if err := envconfig.Usage("nsm", config); err != nil { logrus.Fatal(err) } - if err := envconfig.Process("registry_memory", config); err != nil { + if err := envconfig.Process("nsm", config); err != nil { logrus.Fatalf("error processing config from env: %+v", err) }