From 6a68f2abff2587731b4fa9c21f1f72b4bdc11efd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 17 Jul 2017 03:24:21 +0200 Subject: [PATCH] update default port to new default port allocation --- README.md | 2 +- fastd-exporter.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d3cfd5c..1d6ba15 100644 --- a/README.md +++ b/README.md @@ -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. -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. diff --git a/fastd-exporter.go b/fastd-exporter.go index 7734327..bdc0275 100644 --- a/fastd-exporter.go +++ b/fastd-exporter.go @@ -18,13 +18,12 @@ import ( ) 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.") instances = flag.String("instances", "", "Fastd instances to report metrics on, comma separated.") ) -// These are the structs necessary for unmarshalling the data that is being -// received on fastds unix socket. +// These are the structs necessary for unmarshalling the data that is being received on fastds unix socket. type PacketStatistics struct { Count int `json:"packets"` Bytes int `json:"bytes"`