main.go : syntax
This commit is contained in:
parent
0d3a79d98c
commit
f1e5de93a3
3
main.go
3
main.go
|
@ -15,7 +15,6 @@ import (
|
||||||
type options struct {
|
type options struct {
|
||||||
Address string
|
Address string
|
||||||
MetricsPath string
|
MetricsPath string
|
||||||
|
|
||||||
CupsUri string
|
CupsUri string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +24,7 @@ func main() {
|
||||||
opts := options{}
|
opts := options{}
|
||||||
flag.StringVar(&opts.Address, "web.listen-address", ":9628", "address on which to expose metrics and web interface")
|
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.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()
|
flag.Parse()
|
||||||
|
|
||||||
log.Info("starting cups exporter")
|
log.Info("starting cups exporter")
|
||||||
|
|
Loading…
Reference in New Issue