From af9f1124b3c8c9bb3b691134a9576f057098156d Mon Sep 17 00:00:00 2001 From: Kalman Meth Date: Thu, 9 Mar 2023 11:42:44 +0200 Subject: [PATCH] changed metrics-settings back to metricsSettings --- README.md | 18 +++++++++--------- cmd/flowlogs-pipeline/main.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 300db35f3..d330d1dfc 100644 --- a/README.md +++ b/README.md @@ -49,15 +49,15 @@ Usage: flowlogs-pipeline [flags] Flags: - --config string config file (default is $HOME/.flowlogs-pipeline) - --health.address string Health server address (default "0.0.0.0") - --health.port string Health server port (default "8080") - -h, --help help for flowlogs-pipeline - --log-level string Log level: debug, info, warning, error (default "error") - --metrics-settings string json for global metrics settings - --parameters string json of config file parameters field - --pipeline string json of config file pipeline field - --profile.port int Go pprof tool port (default: disabled) + --config string config file (default is $HOME/.flowlogs-pipeline) + --health.address string Health server address (default "0.0.0.0") + --health.port string Health server port (default "8080") + -h, --help help for flowlogs-pipeline + --log-level string Log level: debug, info, warning, error (default "error") + --metricsSettings string json for global metrics settings + --parameters string json of config file parameters field + --pipeline string json of config file pipeline field + --profile.port int Go pprof tool port (default: disabled) ``` diff --git a/cmd/flowlogs-pipeline/main.go b/cmd/flowlogs-pipeline/main.go index 0aaab9c99..c2e1fac9e 100644 --- a/cmd/flowlogs-pipeline/main.go +++ b/cmd/flowlogs-pipeline/main.go @@ -145,7 +145,7 @@ func initFlags() { rootCmd.PersistentFlags().IntVar(&opts.Profile.Port, "profile.port", 0, "Go pprof tool port (default: disabled)") rootCmd.PersistentFlags().StringVar(&opts.PipeLine, "pipeline", "", "json of config file pipeline field") rootCmd.PersistentFlags().StringVar(&opts.Parameters, "parameters", "", "json of config file parameters field") - rootCmd.PersistentFlags().StringVar(&opts.MetricsSettings, "metrics-settings", "", "json for global metrics settings") + rootCmd.PersistentFlags().StringVar(&opts.MetricsSettings, "metricsSettings", "", "json for global metrics settings") } func main() {