Browse Source

Merge pull request #4 from bachp/doc-improve

Doc improve
pull/1/head v1.0
ndecker 8 years ago
committed by GitHub
parent
commit
f843ad7f21
  1. 6
      README.md
  2. 4
      main.go

6
README.md

@ -4,7 +4,7 @@ This exporter exports some variables from an
[AVM Fritzbox](http://avm.de/produkte/fritzbox/) [AVM Fritzbox](http://avm.de/produkte/fritzbox/)
to prometheus. to prometheus.
This exporter is tested with a Fritzbox 7490 and software version 06.51. This exporter is tested with a Fritzbox 7490 and 7390 with software version 06.51.
## Building ## Building
@ -22,9 +22,9 @@ Usage:
$GOPATH/bin/fritzbox_exporter -h $GOPATH/bin/fritzbox_exporter -h
Usage of ./fritzbox_exporter: Usage of ./fritzbox_exporter:
-gateway-address string -gateway-address string
The URL of the upnp service (default "fritz.box") The hostname or IP of the FRITZ!Box (default "fritz.box")
-gateway-port int -gateway-port int
The URL of the upnp service (default 49000) The port of the FRITZ!Box UPnP service (default 49000)
-listen-address string -listen-address string
The address to listen on for HTTP requests. (default ":9133") The address to listen on for HTTP requests. (default ":9133")
-test -test

4
main.go

@ -32,8 +32,8 @@ var (
flag_test = flag.Bool("test", false, "print all available metrics to stdout") flag_test = flag.Bool("test", false, "print all available metrics to stdout")
flag_addr = flag.String("listen-address", ":9133", "The address to listen on for HTTP requests.") flag_addr = flag.String("listen-address", ":9133", "The address to listen on for HTTP requests.")
flag_gateway_address = flag.String("gateway-address", "fritz.box", "The URL of the upnp service") flag_gateway_address = flag.String("gateway-address", "fritz.box", "The hostname or IP of the FRITZ!Box")
flag_gateway_port = flag.Int("gateway-port", 49000, "The URL of the upnp service") flag_gateway_port = flag.Int("gateway-port", 49000, "The port of the FRITZ!Box UPnP service")
) )
var ( var (

Loading…
Cancel
Save