From c8e7b5c5b5087b5a7e09328ce2d17f23a817f1a5 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Sat, 24 Feb 2018 21:42:13 +1100 Subject: [PATCH] Remove "phpfpm.label-name" and "phpfpm.label-value" since it's not needed due to prometheus relabelling --- cmd/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index 1eff1a9..9a945d7 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -82,8 +82,6 @@ func init() { serverCmd.Flags().StringVar(&listeningAddress, "web.listen-address", ":9253", "Address on which to expose metrics and web interface.") serverCmd.Flags().StringVar(&metricsEndpoint, "web.telemetry-path", "/metrics", "Path under which to expose metrics.") serverCmd.Flags().StringSliceVar(&scrapeURIs, "phpfpm.scrape-uri", []string{"tcp://127.0.0.1:9000/status"}, "FastCGI address, e.g. unix:///tmp/php.sock;/status or tcp://127.0.0.1:9000/status") - serverCmd.Flags().StringSliceVar(&customLabelNames, "phpfpm.label-name", []string{}, "Name of the custom label that will be inserted.") - serverCmd.Flags().StringSliceVar(&customLabelValues, "phpfpm.label-value", []string{}, "Value of the custom label that will be inserted.") //viper.BindEnv("web.listen-address", "PHP_FPM_WEB_LISTEN_ADDRESS") //viper.BindPFlag("web.listen-address", serverCmd.Flags().Lookup("web.listen-address"))