Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Mikhaltsov committed Aug 1, 2024
2 parents 721e706 + 934382d commit 11fa831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const version string = "1.7.7"
var (
WebListenAddresses = kingpin.Flag("web.listen-address", "The address to listen on for HTTP requests").Default(":9427").Strings()
configFile = kingpin.Flag("config.file", "Exporter configuration file").Default("/app/cfg/network_exporter.yml").String()
MetricPath = kingpin.Flag("metrics-path", "metric path").Default("/metrics").String()
enableProfileing = kingpin.Flag("profiling", "Enable Profiling (pprof + fgprof)").Default("false").Bool()
WebConfigFile = kingpin.Flag("web.config.file", "Path to the web configuration file").Default("").String()
WebSystemdSocket = kingpin.Flag("web.system.socket", "WebSystemdSocket").Default("0").Bool()
Expand Down Expand Up @@ -114,7 +115,7 @@ func startConfigRefresh() {

func startServer() {
mux := http.NewServeMux()
metricsPath := "/metrics"
metricsPath := *MetricPath

reg := prometheus.NewRegistry()
reg.MustRegister(collectors.NewGoCollector())
Expand Down

0 comments on commit 11fa831

Please sign in to comment.