update default port to new default port allocation
This commit is contained in:
parent
2e26aa25ee
commit
6a68f2abff
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue