update default port to new default port allocation

This commit is contained in:
Martin Weinelt 2017-07-17 03:24:21 +02:00
parent 2e26aa25ee
commit 6a68f2abff
2 changed files with 3 additions and 4 deletions

View file

@ -21,7 +21,7 @@ $ ./fastd-exporter --instance ffda
The exporter will need read access to both the instances `fastd.conf` and `status socket`, keep that in mind. The exporter will need read access to both the instances `fastd.conf` and `status socket`, keep that in mind.
By default the metrics webserver will listen on `:9099`, which can be changed through the `--web.listen-address` parameter. By default the metrics webserver will listen on `:9281`, which can be changed through the `--web.listen-address` parameter.
Check out the help for additional information. Check out the help for additional information.

View file

@ -18,13 +18,12 @@ import (
) )
var ( var (
address = flag.String("web.listen-address", ":9099", "Address on which to expose metrics and web interface.") address = flag.String("web.listen-address", ":9281", "Address on which to expose metrics and web interface.")
metricsPath = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.") metricsPath = flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.")
instances = flag.String("instances", "", "Fastd instances to report metrics on, comma separated.") instances = flag.String("instances", "", "Fastd instances to report metrics on, comma separated.")
) )
// These are the structs necessary for unmarshalling the data that is being // These are the structs necessary for unmarshalling the data that is being received on fastds unix socket.
// received on fastds unix socket.
type PacketStatistics struct { type PacketStatistics struct {
Count int `json:"packets"` Count int `json:"packets"`
Bytes int `json:"bytes"` Bytes int `json:"bytes"`