main.go : syntax

This commit is contained in:
lconsuegra 2021-01-07 11:36:09 +01:00
parent 0d3a79d98c
commit f1e5de93a3
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@ import (
type options struct {
Address string
MetricsPath string
CupsUri string
}
@ -25,7 +24,7 @@ func main() {
opts := options{}
flag.StringVar(&opts.Address, "web.listen-address", ":9628", "address on which to expose metrics and web interface")
flag.StringVar(&opts.MetricsPath, "web.telemetry-path", "/metrics", "path under which to expose metrics")
flag.StringVar(&opts.CupsUri, "cups.uri", "https://localhost:631", "uri under with the cups server is available, including username and password it required")
flag.StringVar(&opts.CupsUri, "cups.uri", "https://localhost:631", "uri under which the cups server is available, including username and password it required")
flag.Parse()
log.Info("starting cups exporter")